BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hint refresh frequency

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Bono
Guest





PostPosted: Thu Mar 16, 2006 1:03 pm    Post subject: Hint refresh frequency Reply with quote



Hi there!!
I need to update an TImage->Hint very quickily at the mouse move... It's
something like using the hint to display X and Y mouse coordinates in the
Image Box.

Is there any HintUpdateFrequency property to set anywhere?

Thanks
Andrea
Back to top
Bono
Guest





PostPosted: Thu Mar 16, 2006 3:03 pm    Post subject: Re: Hint refresh frequency Reply with quote



Of course, it is.
If I place a breakpoint on the "box->Hint =....", I can see the hint value
changing, but the display on the Image is not updated.

??



"Jonathan Benedicto" <invalid (AT) nobody (DOT) com> ha scritto nel messaggio
news:4419751d$1 (AT) newsgroups (DOT) borland.com...
Quote:
Bono wrote:
.....
uncert = X*Y;
fmt = "0.00";
box->Hint = "+/- " + FloatToStr(uncert).FormatFloat(fmt, uncert) ;
.....

Of course box->ShowHint = true

????????

Is that inside a OnMouseMove ? Or a for loop etc...

Jonathan

Back to top
Jonathan Benedicto
Guest





PostPosted: Thu Mar 16, 2006 3:03 pm    Post subject: Re: Hint refresh frequency Reply with quote



Bono wrote:
Quote:
.....
uncert = X*Y;
fmt = "0.00";
box->Hint = "+/- " + FloatToStr(uncert).FormatFloat(fmt, uncert) ;
.....

Of course box->ShowHint = true

????????

Is that inside a OnMouseMove ? Or a for loop etc...

Jonathan
Back to top
Jonathan Benedicto
Guest





PostPosted: Thu Mar 16, 2006 3:03 pm    Post subject: Re: Hint refresh frequency Reply with quote

Bono wrote:
Quote:
It's not working...
If I use Application->HintPause I only see the first Hint faster. But the
hint text doesn't update when I move the mouse...
What's wrong??

Please can you show the code that sets the hint text. It should update
automatically.

Jonathan
Back to top
Bono
Guest





PostPosted: Thu Mar 16, 2006 3:03 pm    Post subject: Re: Hint refresh frequency Reply with quote

......
uncert = X*Y;
fmt = "0.00";
box->Hint = "+/- " + FloatToStr(uncert).FormatFloat(fmt, uncert) ;
......

Of course box->ShowHint = true

????????





"Jonathan Benedicto" <invalid (AT) nobody (DOT) com> ha scritto nel messaggio
news:44197348$1 (AT) newsgroups (DOT) borland.com...
Quote:
Bono wrote:
It's not working...
If I use Application->HintPause I only see the first Hint faster. But
the
hint text doesn't update when I move the mouse...
What's wrong??

Please can you show the code that sets the hint text. It should update
automatically.

Jonathan

Back to top
Bono
Guest





PostPosted: Thu Mar 16, 2006 3:03 pm    Post subject: Re: Hint refresh frequency Reply with quote

It's not working...
If I use Application->HintPause I only see the first Hint faster. But the
hint text doesn't update when I move the mouse...
What's wrong??



"Larry Griffiths" <larry@kalos-inc.com> ha scritto nel messaggio
news:44196eff$1 (AT) newsgroups (DOT) borland.com...
Quote:
Look int the help files under TApplication for Application->HintHidePause
and Application->HintPause.

"Bono" <bono (AT) ingv (DOT) it> wrote in message
news:44195051$1 (AT) newsgroups (DOT) borland.com...
Hi there!!
I need to update an TImage->Hint very quickily at the mouse move... It's
something like using the hint to display X and Y mouse coordinates in
the
Image Box.

Is there any HintUpdateFrequency property to set anywhere?

Thanks
Andrea



Back to top
Larry Griffiths
Guest





PostPosted: Thu Mar 16, 2006 3:03 pm    Post subject: Re: Hint refresh frequency Reply with quote

Look int the help files under TApplication for Application->HintHidePause
and Application->HintPause.

"Bono" <bono (AT) ingv (DOT) it> wrote in message
news:44195051$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi there!!
I need to update an TImage->Hint very quickily at the mouse move... It's
something like using the hint to display X and Y mouse coordinates in the
Image Box.

Is there any HintUpdateFrequency property to set anywhere?

Thanks
Andrea

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Mar 16, 2006 8:03 pm    Post subject: Re: Hint refresh frequency Reply with quote

"Bono" <bono (AT) ingv (DOT) it> wrote in message
news:44195051$1 (AT) newsgroups (DOT) borland.com...

Quote:
I need to update an TImage->Hint very quickily at the mouse move...
It's something like using the hint to display X and Y mouse coordinates
in the Image Box.

Set the TImage's ShowHint property to false, and then display your own
instance of the THintWindow class directly. You can intercept the
CM_MOUSEENTER message to create the THintWindow, intercept the CM_MOUSELEAVE
message to destroy it, and the OnMouseMove event to move it around.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.