| View previous topic :: View next topic |
| Author |
Message |
Bono Guest
|
Posted: Thu Mar 16, 2006 1:03 pm Post subject: Hint refresh frequency |
|
|
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
|
Posted: Thu Mar 16, 2006 3:03 pm Post subject: Re: Hint refresh frequency |
|
|
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
|
Posted: Thu Mar 16, 2006 3:03 pm Post subject: Re: Hint refresh frequency |
|
|
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
|
Posted: Thu Mar 16, 2006 3:03 pm Post subject: Re: Hint refresh frequency |
|
|
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
|
Posted: Thu Mar 16, 2006 3:03 pm Post subject: Re: Hint refresh frequency |
|
|
......
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
|
Posted: Thu Mar 16, 2006 3:03 pm Post subject: Re: Hint refresh frequency |
|
|
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
|
Posted: Thu Mar 16, 2006 3:03 pm Post subject: Re: Hint refresh frequency |
|
|
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
|
Posted: Thu Mar 16, 2006 8:03 pm Post subject: Re: Hint refresh frequency |
|
|
"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 |
|
 |
|