scripted Show tooltip not a thing?

David V Glasgow dvglasgow at gmail.com
Fri Jan 14 06:10:37 EST 2022


Thanks all.

I scripted as if the delay was the duration the tooltip is displayed.  Duh!  Of course the delay is hover delay before the tooltip shows!  I knew that, and yet somehow didn’t know it at the same time.

Cheers

David G

> On 11 Jan 2022, at 2:48 pm, Craig Newman via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> You can do this. In a button script;
> 
> on mouseenter
> 
> set the tooltip of me to random(999)
> 
> end mouseenter
> 
> 
> Now every time you move the cursor into that button, you get a new integer when you hover.
> 
> Craig
> 
>> On Jan 11, 2022, at 9:38 AM, Klaus major-k via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>> wrote:
>> 
>> 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 tooltip delay to 0
>>> end menuPick
>>> 
>>> It seems  show the tooltip of me isn’t a thing.  I appreciate that I could show and hide an ordinary field, but I wondered if I have overlooked a suitable message and/or syntax that will enable what I want. 
>>> 
>>> 
>>> Best Wishes,
>>> 
>>> David Glasgow
>> 
>> well, we cannot explicitely show a tooltip by script.
>> So "show the tooltup of me" will not work if it doesn't throw an error.
>> 
>> Problem in your script:
>> ...
>> set the tooltipdelay to 500
>> ## from this point the tooltip will appear in 500 millisecs
>> ## show the tooltip of me
>> 
>> ## but this will disable the tooltip again much EARLIER than the 500 millisecs!
>> ## LC is too fast for this :-)
>> set the tooltip delay to 0
>> ...
>> 
>> 
>> Best
>> 
>> Klaus
>> 
>> 
>> 
>> --
>> Klaus Major
>> https://www.major-k.de <https://www.major-k.de/>
>> https://www.major-k.de/bass <https://www.major-k.de/bass> <https://www.major-k.de/bass <https://www.major-k.de/bass>>
>> klaus at major-k.de <mailto:klaus at major-k.de> <mailto:klaus at major-k.de <mailto:klaus at major-k.de>>
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com> <mailto:use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode> <http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>


More information about the use-livecode mailing list