m.schonewille at economy-x-talk.com
Mon Feb 14 14:53:41 EST 2011
All other solutions posted so far will cause the tooltip to flash in an ugly way. Here's how to do it:
put (the value of the mouseLine)/36 into myNewTip
if the tooltip of me is not myNewTip then
set the tooltip of me to empty
set the toolTip of me to myNewTip
(I didn't test this one, but this is how I always do it)
Economy-x-Talk Consulting and Software Engineering
New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce
On 14 feb 2011, at 19:48, dunbarx at aol.com wrote:
> I want to use the tooltip to display information. I have a field with numbers in each line.
> I want to display the number in a line divided by 36. So if I have 72 as a
> value in the line, I would like the tooltip to read "36". Easy, right:
> on mouseMove
> put the mouseLine
> set the toolTip of me to the value of the mouseLine / 36
> end mouseMove
> I get a dynamic value for the mouseLine as I move the cursor over various lines in the field (this was just a check)
> but the only toolTip I get is when I enter the field. That line responds fine, but no other values appear as I move
> the mouse to other lines. I have to exit the field and re-enter at another line to see any change. I tried changing toolTipDelay.
> Nothing helps. The toolTip is correctly set as I move around the field ( I check it with a mouseLeave handler). It just does not display dynamically. And there
> is no "upDateToolTip" command.
> This seems like a cute little gadget. In fact, it would be terrific
> if one was able to place a function in the toolTip property, similar to the very powerful ability HC had to place
> custom functions in the contents of the report items.
> So is it me or the toolTip itself? Am I working it too hard? Is it only invoked by the engine on mouseEnter? I can easily write a workaround with a tiny field, but, well...
> Craig Newman
More information about the Use-livecode