Tool tips

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

SparkOut
Posts: 2839
Joined: Sun Sep 23, 2007 4:58 pm

Re: Tool tips

Post by SparkOut » Sun May 31, 2020 6:34 pm

richmond62 wrote:
Sun May 31, 2020 5:41 pm
To pick a few holes in globalLoc for this sort of exercise
where I want the topLeft of my palette to be set to the bottomRight of the object,
using globalLoc would still involve as many calculations as in my effort,
as to find the bottomLeft of the object would involve
adding half of the width of the object and half of the height to the object's globalLoc.

While I would not deny that globalLoc may be useful elsewhere, in this context it is
neither worse or better than my method.

HOWEVER . . . it would be very useful if, in the Documentation, on looking up location
it cross-referenced globalLoc.
Well, again more info and documentation would not be amiss here. The globalLoc function will convert any point from card relative to screen relative coordinates. So you could

Code: Select all

get the globalLoc(the bottomRight of image "funkyPictureInNeedOfCaption")

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

Re: Tool tips

Post by richmond62 » Sun May 31, 2020 7:09 pm

Getting the globalLoc of the bottomRight sounds super.

anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: Tool tips

Post by anmldr » Mon Jun 01, 2020 5:50 am

richmond62 wrote:
Sun May 31, 2020 8:51 am
HOWEVER this is NOT what the OP was speirin after.

What the OP would like is big tooltips in the IDE for her own work.
And, for the tool tip to be shifted so that it is not underneath an enlarged cursor.

Linda

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

Re: Tool tips

Post by jacque » Mon Jun 01, 2020 5:51 pm

The other thing about my method is that one has to have 'that' mouseEnter . . . mouseLeave code
in the script of every object, which is extremely clunky seeing it is always the same.
That's what behaviors are for.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

MadDogDean
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 36
Joined: Thu Jan 03, 2013 6:33 pm
Location: Floating in the binary mist

Re: Tool tips

Post by MadDogDean » Fri Jun 05, 2020 7:30 am

Just an off the cuff (not knowing anything about anything), the problem seems to me that the Super sized cursor is covering up the tooltip.

Instead of creating a huge tool tip to combat the super sized cursor, is it not possible to, if the point of the super sized cursor (or maybe some other co-ord of the cursor) is positioned over top of the tooltip (and if the cursor is not moving), to shrink or hide the cursor?

Once the mouse is moved the cursor becomes visible and cam tromple it's way over top of everything?

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

Re: Tool tips

Post by richmond62 » Fri Jun 05, 2020 6:02 pm

the problem seems to me that the Super sized cursor is covering up the tooltip.
I don't think there is only one problem.

1. The super sized cursor covers part of the tooltip.

2. The super sized cursor seems to cover up a fair few of the objects it is hovering over.

3. The tooltips are too small.

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

Re: Tool tips

Post by richmond62 » Fri Jun 05, 2020 6:29 pm

The first thing to do is make sure that one's scaled cursors are made properly so that the top-left corner contains the pixel
for pointing.
-
Screenshot 2020-06-05 at 20.24.20.png
-
In my example the extended finger (no, bogs, it is NOT the middle one)
is what 'does the pointing.

This guarantees the cursor does NOT cover whatever it is pointing at.

HOWEVER, BIG cursors like my "horror" in the example stack, will cover tooltips, and at that
point the tooltip needs to be shifted, and, as the point of the whole exercise is to help people
with poor eyesight, one might as well enlarge the tooltip as well.
Attachments
Cursed.livecode.zip
(31 KiB) Downloaded 178 times

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

Re: Tool tips

Post by Klaus » Fri Jun 05, 2020 6:45 pm

Linda is talking about the upscaled macOS SYSTEM cursor, not the custom one we can create and only use in LC!
I know because I also use a slighly scaled up cursor and that covers all tooltips in LC.

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

Re: Tool tips

Post by richmond62 » Fri Jun 05, 2020 7:44 pm

Linda is talking about the upscaled macOS SYSTEM cursor, not the custom one we can create and only use in LC!
I know because I also use a slighly scaled up cursor and that covers all tooltips in LC.
Well then I think she'll be stuck with the situation as it is.

A scaling system inwith LiveCode (version 10?) would be a good thing.

anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: Tool tips

Post by anmldr » Fri Jun 05, 2020 7:49 pm

richmond62 wrote:
Fri Jun 05, 2020 7:44 pm
Well then I think she'll be stuck with the situation as it is.
I think that you are right and I accept that.

Linda

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Tool tips

Post by bogs » Fri Jun 05, 2020 8:31 pm

richmond62 wrote:
Fri Jun 05, 2020 6:29 pm
In my example the extended finger (no, bogs, it is NOT the middle one)
is what 'does the pointing.
I dunno, it is sitting smack in the middle of the thumb and 2nd finger, looks like it is the middle finger to me :P
Image

MadDogDean
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 36
Joined: Thu Jan 03, 2013 6:33 pm
Location: Floating in the binary mist

Re: Tool tips

Post by MadDogDean » Sat Jun 06, 2020 1:54 pm

One last thought on this. I'm not a Mac person, but is it possible (maybe even from within the LC IDE) to set the transparency of the cursor to 10% - 20% when a tooltip is visible or when the cursor registers a hover?

Cheers

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

Re: Tool tips

Post by richmond62 » Sat Jun 06, 2020 4:46 pm

MadDogDean wrote:
Sat Jun 06, 2020 1:54 pm
One last thought on this. I'm not a Mac person, but is it possible (maybe even from within the LC IDE) to set the transparency of the cursor to 10% - 20% when a tooltip is visible or when the cursor registers a hover?

Cheers
Almost anything is possible in LiveCode . . . but the question is whether the work is justified.

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

Re: Tool tips

Post by richmond62 » Sat Jun 06, 2020 5:55 pm

jacque wrote:
Mon Jun 01, 2020 5:51 pm
The other thing about my method is that one has to have 'that' mouseEnter . . . mouseLeave code
in the script of every object, which is extremely clunky seeing it is always the same.
That's what behaviors are for.
Yes, but, suppose I were to write a substack to be "injected" into the IDE with a generic button set up
with my mouseEnter and mouseLeave scripts how would I go about assigning that behavior to ALL the objects in the IDE?

Listing all the objects in the IDE would be a "right $%^&*".

MadDogDean
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 36
Joined: Thu Jan 03, 2013 6:33 pm
Location: Floating in the binary mist

Re: Tool tips

Post by MadDogDean » Sat Jun 06, 2020 6:19 pm

richmond62 wrote:
Sat Jun 06, 2020 4:46 pm

Almost anything is possible in LiveCode . . . but the question is whether the work is justified.
Well, I was thinking that there must be a *single* command somewhere that tells the tooltips to pop up. Could this transparency effect not be tied to the event that actually triggers the tooltip in the first place?

Kind of like:

Code: Select all

if tooltip is visible AND mouseMove = false
   set cursor transparency to 0.20  
   make Linda *smile*
end if
BTW, that's not real LC code, I'm just blowing smoke out of my... pipe

Furthermore, with regards to the question of whether the effort justifies the means, we should all try grabbing Granny's +3.75 reading glasses and see how well we can work on LC with the screen an arm's length away. That can determine what is needed or not and what is worth the effort or not. As for Linda, it is enough of an issue for her to even begin discussing it.

Cheers
Last edited by MadDogDean on Sat Jun 06, 2020 6:30 pm, edited 4 times in total.

Post Reply

Return to “Off-Topic”