Hi again.
Not sure what you mean. You do know that the tooltip is a property, and need
not just be fixed text, right?
on mouseMove
set the tooltip of me to the mouseLoc
end mouseMove
Try this in your rect. You will want to make sure to knock off the toolTipDelay.
Craig
Craig,
Thanks for that! No, I didn't know I could use the tooltip for that. So I could
do something like:
Set the text of the tooltip of me to mytext as the mouse is moved?
Bill
William Prothero
http://es.earthednet.org
On Nov 19, 2014, at 7:34 AM, dunb...@aol.com wrote:
Hi again.
Craig wrote:
on mouseMove
set the tooltip of me to the mouseLoc
end mouseMove
Try this in your rect. You will want
to make sure to knock off the toolTipDelay.
Really clever! :-)
In Linux, the tooltip get stuck in
one place and does not follow
the pointer within the graphic rect.
Al
Edit the tooltip
On Nov 18, 2014, at 15:00 , William Prothero proth...@earthednet.org wrote:
Folks:
I have a help field that I want to pop up and follow the mouse when it’s
within a specific rect. What I’m doing is showing the x,y values in a data
plot region. So, I do something like:
Well, not quite. The toolTip is a property, and must be set directly. You might
say it has no text property, being a property already. You might also say
that the toolTip property is, already, its text.
In other words, keep it simple. Just set it and go...
Craig
-Original Message-
Craig:
Ok, let me see if I’ve got it.
on mouseMove
put myText into toolTip —?? i.e. how do I get text that depends on the
mouseLoc, into the tooltip contents?
set the tooltip of me to the mouseLoc
end mouseMove
Tnx,
Bill
On Nov 19, 2014, at 8:32 AM, dunb...@aol.com wrote:
On 11/19/2014, 1:18 PM, William Prothero wrote:
Ok, let me see if I’ve got it.
on mouseMove
put myText into toolTip —?? i.e. how do I get text that depends on the
mouseLoc, into the tooltip contents?
set the tooltip of me to the mouseLoc
end mouseMove
The mousemove message
Two things.
First, jacque makes a point, in that even with a toolTipDelay of 1 the toolTip
itself is jittery. I guess it is really a note gizmo that in intended to tell
you something while the mouse hovers over an object, and does not move
overmuch. A field that tracks the mouseLoc is really
dunbarx wrote
[snip]
A field that tracks the mouseLoc is really much nicer,
since many mouseMove messages are sent in a
short time while the cursor is on the march.
Can you do that?
make it appear and disappear,
and track?
The toolTip handles that automatically,
but is not as
Thanks for the info, folks. Frankly, the field method seems better to me. I’ll
use the “on mouse move x,y” method. I’ve already got it implemented, except
that I was putting all of the action inside a repeat while loop, which was
causing recursion limit problems occasionally. But, since the
Folks:
I have a help field that I want to pop up and follow the mouse when it’s within
a specific rect. What I’m doing is showing the x,y values in a data plot
region. So, I do something like:
on mouseEnter
doTheDisplay
end mouseEnter
on doTheDisplay
repeat while the mouseLoc is within
Hi William,
Still not well from Cold, but here is
a very simple method:
Create a small field named cursorpos
Create an opaque rectangle graphic
and put this script in the graphic:
on mousemove x,y
set the layer of fld cursorpos to the layer of me + 1
put x,y into fld cursorpos
set the
Al,
Ahah! Didn't know there was a mouse move message.
Thanks!
Bill
On Nov 18, 2014, at 5:58 PM, Alejandro Tejada capellan2...@gmail.com wrote:
Hi William,
Still not well from Cold, but here is
a very simple method:
Create a small field named cursorpos
Create an opaque rectangle
Have you ever used a toolTip? They follow like a loyal dog.
Craig Newman
-Original Message-
From: William Prothero proth...@earthednet.org
To: Use-livecode Use-livecode use-livecode@lists.runrev.com
Sent: Tue, Nov 18, 2014 6:01 pm
Subject: Whats the proper way to show a help field?
Yeah, I use the tool tips a lot. But the field I need displays the x,y values
under a data plot, as the user moves the mouse within the plot axes boundary. .
In that way, the user gets a convenient way of getting values from a data plot.
Bill
William Prothero
http://es.earthednet.org
On Nov
15 matches
Mail list logo