Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Can't get tooltips to display (Read 10855 times)
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 #15 - Jan 15th, 2009 at 3:32pm
Print Post  
Stoyan

I think we may be barking up the wrong tree.

I've just created a new project. On the main form I added your flowchart component.

I set .ShowToolTips=true. .ShowHints is set to false be default.

In the form's FormShow event I added this...
Code
Select All
procedure TForm2.FormShow(Sender: TObject);
var
  box : IBoxItem;
begin
  box := fcx.CreateBox(10, 10, 50, 50);
  box.ToolTip := 'A multi-line' + chr(10) +'tooltip';
end; 



Run the code and the tooltip shows Cheesy.

Now, without doing anything else. I save the project and close it. I then immediately reopened the project and ran it. Guess what? No tooltips!!!!
  

-- &&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 #16 - Jan 16th, 2009 at 2:02pm
Print Post  
I don't know, there might be some randomness in what time the Delphi hint timer runs or something. It works consistently in our test after calling Application.CancelHint(). Btw. I've found some VCL source code folder, but searching for that method there didn't yield anything ???

Could you try what happens if you add the following lines to FormShow?

Application.CancelHint();
fc.ShowToolTip := false;
fc.ShowToolTip := true;

Resetting the ShowToolTip value should create a new instance of the Win32 ToolTip control used by FlowchartX.

Stoyan
  
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 #17 - Jan 16th, 2009 at 2:10pm
Print Post  
GrinYou Beauty! Grin
Kiss Kiss Kiss

We're sorted.
  

-- &&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 #18 - Jan 16th, 2009 at 2:20pm
Print Post  
Smiley cool
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint