Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Can't get tooltips to display (Read 10851 times)
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Can't get tooltips to display
Jan 12th, 2009 at 1:35pm
Print Post  
I'm working with Delphi (v4) on Windows XP.

I can't get tooltips to display for either boxes or arrows.

I've explicitly set .ShowToolTips to true and .ToolTipDelay to 500.

Other than actually setting the .ToolTip property of the box/arrow, is there any other magic spell I'm supposed to cast?
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Can't get tooltips to display
Reply #1 - Jan 13th, 2009 at 1:32pm
Print Post  
Any thoughts?
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't get tooltips to display
Reply #2 - Jan 13th, 2009 at 3:34pm
Print Post  
It seems the Hint property that Delphi adds somehow breaks the flowchart's tooltips. We haven't found how to prevent this yet.
« Last Edit: Jan 13th, 2009 at 6:09pm by Stoyo »  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Can't get tooltips to display
Reply #3 - Jan 13th, 2009 at 3:39pm
Print Post  
OK. At least it's not me doing something dumb this time.  Smiley
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't get tooltips to display
Reply #4 - Jan 14th, 2009 at 8:05am
Print Post  
The flowchart tooltips work fine if you call the Application.CancelHint() method. I suppose that might be a problem if you need to display hints for other elements on the form.
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Can't get tooltips to display
Reply #5 - Jan 14th, 2009 at 8:51am
Print Post  
Quote:
The flowchart tooltips work fine if you call the Application.CancelHint() method.
At what point?
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't get tooltips to display
Reply #6 - Jan 14th, 2009 at 10:23am
Print Post  
At FormCreate or FormShow - both worked for us. However we have only a flowchart control on the form. If that hint is automatically activated by other controls, you might have to call CancelHint somewhat more often, say from a mousemove or timer event Kiss
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Can't get tooltips to display
Reply #7 - Jan 14th, 2009 at 12:37pm
Print Post  
I can't get it to work here (Delphi 4, if that makes any difference)

I've added Application.CancelHint calls to the FormShow event and to the OnMouseMove event of the form.  Sad
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't get tooltips to display
Reply #8 - Jan 14th, 2009 at 12:51pm
Print Post  
Well, we used the latest Delphi version from the Codegear site, and don't have any idea where to get Delphi 4 from. If we suppose that the Delphi 4 hint somehow destroys the flowchart's win32 tooltip control, then setting flowchart.ShowToolTips = true after calling CancelHint might restore it.
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Can't get tooltips to display
Reply #9 - Jan 14th, 2009 at 1:05pm
Print Post  
Quote:
If we suppose that the Delphi 4 hint somehow destroys the flowchart's win32 tooltip control, then setting flowchart.ShowToolTips = true after calling CancelHint might restore it.

Sad Sadly it doesn't Sad

Bugger!

If a copy of the D4 installation disk magically turned up in the post, do you think you'd be able to investigate further?
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't get tooltips to display
Reply #10 - Jan 14th, 2009 at 2:16pm
Print Post  
Smiley Sure, please use the address from this page:
http://www.mindfusion.eu/contacts.html
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Can't get tooltips to display
Reply #11 - Jan 14th, 2009 at 2:19pm
Print Post  
I'll sort it tomorrow when I'm in the office. Wink
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Can't get tooltips to display
Reply #12 - Jan 15th, 2009 at 2:13pm
Print Post  
Stoyan,

I'm struggling to get hold of a copy of the D4 installation media. Whilst I work on that, could you send me the code for the Application.CancelHints method from the VCL in the version of Delphi you do have please?

Ta.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't get tooltips to display
Reply #13 - Jan 15th, 2009 at 2:49pm
Print Post  
let me check if they give the library code with the trial version Smiley
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: Can't get tooltips to display
Reply #14 - Jan 15th, 2009 at 2:58pm
Print Post  
Cool. Ta.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint