Page 1 of 1
A ShowTooltip ?
Posted: Thu May 21, 2009 9:02 pm
by jmburnod
Hi All,
What is the best way to show the tooltyp only when a condition is true (the hilite of a btn "help" p.e) ?
Jean-Marc
Posted: Fri May 22, 2009 6:51 am
by Janschenkel
Probably the easiest way is to save all the different tooltips in a custom property set, and change the tooltip upon
mouseEnter.
You can define custom properties by script via a button or the message box, or manually using the Inspector palette in the Rev IDE. Let's assume you've created a custom property set named "uTooltips" and have three conditions "green","yellow" and "red".
Code: Select all
on mouseEnter
-- insert some logic to decide on the condition
-- and put it into a variable named 'tCondition'
put "green" into tCondition
set the tooltip of me to the uToolTip[tCondition] of me
end mouseEnter
HTH,
Jan Schenkel.
A ShowTooltip ?
Posted: Fri May 22, 2009 8:18 am
by jmburnod
Thanks Jan,
I do that and a script for the gestion of the customprop of all visibles objects
Jean-Marc