tooltip latency

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

tooltip latency

Post by dunbarx » Tue Jul 26, 2022 4:53 pm

The toolTipDelay determines how long it takes for the toolTip to appear.

But its appearance times out after about 5 seconds. Is this a property one can set, to keep it open?

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: tooltip latency

Post by richmond62 » Tue Jul 26, 2022 5:25 pm

Do you man that, once a toolTip has appeared you want it to keep being shown for some time longer
than 5 seconds?

If so, this has nothing to do with the toolTipDelay.

We have been down this alley-way before:

https://forums.livecode.com/viewtopic.php?t=34165

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: tooltip latency

Post by dunbarx » Tue Jul 26, 2022 6:08 pm

Richmond.

This never had anything to do with the toolTipDelay. I was asking about a possible "toolTipLatency"

The other thread deals with the placement of the actual toolTip, and workarounds. This was left to the team to mull over.

I do not expect any movement on this, I just wanted to know if I was missing something. A tooltip is supposed to be ephemeral, and five seconds likely seemed like the right amount of time, er, at the time. I will just change from a toolTip to an actual field, opened in the same way, and dismissed by hand.

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: tooltip latency

Post by richmond62 » Tue Jul 26, 2022 7:52 pm

Personally I would be happy if one could set the time a toolTip was displayed as not everyone
is quick enough to get a 5 second display.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: tooltip latency

Post by dunbarx » Tue Jul 26, 2022 8:21 pm

Richmond.

So would I. The toolTip for this control happens to be rather lengthly, and cannot be read in only five seconds. This probably means a toolTip in and of itself is the wrong way to go.

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: tooltip latency

Post by richmond62 » Tue Jul 26, 2022 8:22 pm

You could try what I suggested in the thread I referenced earlier.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: tooltip latency

Post by dunbarx » Tue Jul 26, 2022 10:32 pm

Richmond.

No idea to what you refer. Where is there any discussion of how long a toolTip stays open? Or, for that matter, any discussion that says it might be a nice thing to be able to control?

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: tooltip latency

Post by jacque » Wed Jul 27, 2022 5:35 pm

dunbarx wrote:
Tue Jul 26, 2022 8:21 pm
The toolTip for this control happens to be rather lengthly, and cannot be read in only five seconds. This probably means a toolTip in and of itself is the wrong way to go.
I agree. One of my projects had a similar requirement that showed long explanations of images. We decided on showing a field on mouseEnter and hiding it on mouseLeave.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: tooltip latency

Post by dunbarx » Wed Jul 27, 2022 7:25 pm

Jacque.

Right on. If done properly, the field can look and act just like a toolTip, but has the advantage of all the property options of fields.

It is one more control, of course, but that is a first-world problem.

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: tooltip latency

Post by richmond62 » Fri Jul 29, 2022 4:44 pm

SShot 2022-07-29 at 18.42.32.png
SShot 2022-07-29 at 18.42.32.png (7.18 KiB) Viewed 4093 times
-
Oddly enough the tooltip did NOT disappear UNTIL I moved the mouse again (even though
the pointer was still inwith the bounds of the object).

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: tooltip latency

Post by FourthWorld » Fri Jul 29, 2022 5:20 pm

dunbarx wrote:
Wed Jul 27, 2022 7:25 pm
Jacque.

Right on. If done properly, the field can look and act just like a toolTip, but has the advantage of all the property options of fields.

It is one more control, of course, but that is a first-world problem.
And arguably not much of a problem at all. You needed something that doesn't behave like an OS-spec tooltip, and built something that wasn't an OS-spec tooltip.

Sometimes we need things beyond common GUI conventions. Most of the time LC makes creating new types of GUI elements rather easy. Glad you found that to be the case with your project.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

spinabove
Posts: 1
Joined: Fri May 12, 2023 4:52 am
Contact:

Re: tooltip latency

Post by spinabove » Fri May 12, 2023 4:54 am

I have absolutely no clue what you're talking about. I can't seem to find any information on how long a toolTip is shown. Or any talk that suggests it would be wonderful to have some voice in the matter?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: tooltip latency

Post by FourthWorld » Fri May 12, 2023 5:06 am

spinabove wrote:
Fri May 12, 2023 4:54 am
I have absolutely no clue what you're talking about. I can't seem to find any information on how long a toolTip is shown. Or any talk that suggests it would be wonderful to have some voice in the matter?
Much could be written about toolTips. Let's start with what's most relevant for you: what are you building with LiveCode?

And why Nord over PIA?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: tooltip latency

Post by richmond62 » Fri May 12, 2023 10:15 am

This is a load of old cobblers:
-
TT.png
-

Code: Select all

on mouseEnter
   set the lockScreen to true
   open stack "Tipper"
   set the topLeft of stack "Tipper" to the bottomRight of me
   put the short name of me into fld "ff" of stack "Tipper"
   set the lockScreen to false
end mouseEnter
OBVIOUSLY the thing is misunderstanding bottomRight [possibly relative to the screen rather than the stack].

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: tooltip latency

Post by Klaus » Fri May 12, 2023 10:28 am

richmond62 wrote:
Fri May 12, 2023 10:15 am
...
OBVIOUSLY the thing is misunderstanding bottomRight [possibly relative to the screen rather than the stack].
EXACTLY!
LC objects are located relative to the card, stack relative to the screen.

Post Reply

Return to “Talking LiveCode”