Page 4 of 5

Re: Tool tips

Posted: Sun May 31, 2020 6:34 pm
by SparkOut
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")

Re: Tool tips

Posted: Sun May 31, 2020 7:09 pm
by richmond62
Getting the globalLoc of the bottomRight sounds super.

Re: Tool tips

Posted: Mon Jun 01, 2020 5:50 am
by anmldr
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

Re: Tool tips

Posted: Mon Jun 01, 2020 5:51 pm
by jacque
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.

Re: Tool tips

Posted: Fri Jun 05, 2020 7:30 am
by MadDogDean
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?

Re: Tool tips

Posted: Fri Jun 05, 2020 6:02 pm
by richmond62
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.

Re: Tool tips

Posted: Fri Jun 05, 2020 6:29 pm
by richmond62
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.

Re: Tool tips

Posted: Fri Jun 05, 2020 6:45 pm
by Klaus
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.

Re: Tool tips

Posted: Fri Jun 05, 2020 7:44 pm
by richmond62
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.

Re: Tool tips

Posted: Fri Jun 05, 2020 7:49 pm
by anmldr
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

Re: Tool tips

Posted: Fri Jun 05, 2020 8:31 pm
by bogs
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

Re: Tool tips

Posted: Sat Jun 06, 2020 1:54 pm
by MadDogDean
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

Re: Tool tips

Posted: Sat Jun 06, 2020 4:46 pm
by richmond62
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.

Re: Tool tips

Posted: Sat Jun 06, 2020 5:55 pm
by richmond62
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 $%^&*".

Re: Tool tips

Posted: Sat Jun 06, 2020 6:19 pm
by MadDogDean
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