scripted Show tooltip not a thing?

Klaus major-k klaus at major-k.de
Tue Jan 11 09:48:08 EST 2022


Hi David,

> Am 11.01.2022 um 15:38 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
> 
> Hi David,
> 
>> Am 11.01.2022 um 15:29 schrieb David Glasgow via use-livecode <use-livecode at lists.runrev.com>:
>> 
>> Hi folks
>> 
>> I have an app in which tooltips are generally off.  I also have a button menu which allows the selection of equality/inequelity.  Users are non technical, and on selection (i.e. not the usual hover) I wanted to pop up a brief tooltip describing the selected item in ordinary language (irrespective of whether tooltips are globally on or off):
>> 
>> on menuPick pChosenItem
>>  set the label of me to pChosenitem
>>  switch
>>     case pChosenItem = "="
>>        set the tooltip of me to "Equals"
>>        break
>>     case pChosenItem = "≤"
>>        set the tooltip of me to  “Is at least"
>>        break
>>     case pChosenItem = "≅"
>>        set the tooltip of me to “Is approximately"
>>        break
>>  end switch
>>  set the tooltipdelay to 500
>>  show the tooltip of me
>>  set the tooltipdelay to 0
>> end menuPick

maybe something like this will work for you:
..
 set the tooltipdelay to 1
 ## to show the tooltip almost immediately
 ## give th user time to read the tooltip
 send "set the tooltipdelay to 0" to me in 2 secs
...

Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list