Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic TooltipStyle Property (Read 4619 times)
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
TooltipStyle Property
Nov 3rd, 2010 at 1:25pm
Print Post  
Hi Stoyo,
I have a new question for you.
My Boxes and arrows have sometimes a long and complex text to be displayed in Tooltip.
The tooltip appeas only for a few second and is sometimes difficult to read the whole text.
I try to set the ToolTipStyle property to
TTS_BALLOON + TTS_CLOSE
so I should see the tooltip close button in a Balloon style window.
Unfortunately I see a Ballon style window but the close button does not appear and the window still close automatically after a few seconds.. Undecided

What's wrong?
Franco.

  

Franco
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: TooltipStyle Property
Reply #1 - Nov 3rd, 2010 at 2:23pm
Print Post  
Hi Franco,

Check what this MSDN page says about TTS_CLOSE:
http://msdn.microsoft.com/en-us/library/bb760248(VS.85).aspx

It seems you'll have to send the tooltip control a TTM_SETTITLE message for this to work. Now there's the problem how to get the window handle of the tooltip control. Perhaps you could use the FindWindowEx Win32 API function to find it by its class name "tooltips_class".

Stoyan
  
Back to top
 
IP Logged
 
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
Re: TooltipStyle Property
Reply #2 - Nov 3rd, 2010 at 3:29pm
Print Post  
Dammn!! this is what I hate. Sad
Anway,
I try to get the handle but I cannot find it with
FindWindowEx
I try with both Tooltips_Class and Tooltips_Class32 as classname.

Despite the fact I could not get any handle, I ask myself: (may be I'm wrong but ...)how I can find the tooltip I need by searching it by classname?
In the flowchart there are thousands of tooltips, one for each box and arrow....shouldn't be flowchartx to send the message above when it create each tooltip?
Franco
  

Franco
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: TooltipStyle Property
Reply #3 - Nov 3rd, 2010 at 4:39pm
Print Post  
Actually it's a single window, but FindWindowEx fails to find it for some reason, while it works fine for the inplace-edit text box. My guess is it looks for windows with WS_CHILD style set when you specify parent hwnd, while the tooltip is WS_POPUP by default. You could try the EnumWindows method shown here to find the tooltip control instead of FindWindowEx:
http://stackoverflow.com/questions/1333770/how-to-get-tooltip-text-for-a-given-h...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint