Re: Whats the proper way to show a help field?

2014-11-19 Thread dunbarx
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



-Original Message-
From: Earthednet-wp proth...@earthednet.org
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Wed, Nov 19, 2014 1:04 am
Subject: Re: 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 18, 2014, at 8:20 PM, dunb...@aol.com wrote:
 
 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?
 
 
 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 theRect
 doStuff that shows the field and its contents
  end repeat
 end doTheDisplay
 
 The problem with this is I am getting “Recursion Limit” errors. 
 
 
 William A. Prothero
 http://es.earthednet.org/
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Whats the proper way to show a help field?

2014-11-19 Thread Earthednet-wp
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.
 
 
 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
 
 
 
 -Original Message-
 From: Earthednet-wp proth...@earthednet.org
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Wed, Nov 19, 2014 1:04 am
 Subject: Re: 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 18, 2014, at 8:20 PM, dunb...@aol.com wrote:
 
 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?
 
 
 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 theRect
doStuff that shows the field and its contents
 end repeat
 end doTheDisplay
 
 The problem with this is I am getting “Recursion Limit” errors. 
 
 
 William A. Prothero
 http://es.earthednet.org/
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Whats the proper way to show a help field?

2014-11-19 Thread Alejandro Tejada
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
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Whats the proper way to show a help field?

2014-11-19 Thread Bob Sneidar
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:
 
 on mouseEnter
  doTheDisplay
 end mouseEnter
 
 on doTheDisplay
  repeat while the mouseLoc is within theRect
 doStuff that shows the field and its contents
  end repeat
 end doTheDisplay  
 
 The problem with this is I am getting “Recursion Limit” errors. 
 
 
 William A. Prothero
 http://es.earthednet.org/
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Whats the proper way to show a help field?

2014-11-19 Thread dunbarx
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-
From: Earthednet-wp proth...@earthednet.org
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Wed, Nov 19, 2014 10:44 am
Subject: Re: Whats the proper way to show a help field?


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.
 
 
 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
 
 
 
 -Original Message-
 From: Earthednet-wp proth...@earthednet.org
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Wed, Nov 19, 2014 1:04 am
 Subject: Re: 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 18, 2014, at 8:20 PM, dunb...@aol.com wrote:
 
 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?
 
 
 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 theRect
doStuff that shows the field and its contents
 end repeat
 end doTheDisplay
 
 The problem with this is I am getting “Recursion Limit” errors. 
 
 
 William A. Prothero
 http://es.earthednet.org/
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Whats the proper way to show a help field?

2014-11-19 Thread William Prothero
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:

 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-
 From: Earthednet-wp proth...@earthednet.org
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Wed, Nov 19, 2014 10:44 am
 Subject: Re: Whats the proper way to show a help field?
 
 
 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.
 
 
 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
 
 
 
 -Original Message-
 From: Earthednet-wp proth...@earthednet.org
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Wed, Nov 19, 2014 1:04 am
 Subject: Re: 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 18, 2014, at 8:20 PM, dunb...@aol.com wrote:
 
 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?
 
 
 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 theRect
   doStuff that shows the field and its contents
 end repeat
 end doTheDisplay
 
 The problem with this is I am getting “Recursion Limit” errors. 
 
 
 William A. Prothero
 http://es.earthednet.org/
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Whats the proper way to show a help field?

2014-11-19 Thread J. Landman Gay

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 includes the mouse coordinates in its parameters, 
like this:


on mouseMove x,y
  set the tooltip of me to x,y
end mouseMove

This sets the text of the tooltip. You can't set its location by script, 
that is automatic. But there are some problems using tooltips this way:


1. There is a delay before the tooltip appears. By default it is a half 
second. You can adjust that though by setting the tooltipDelay when the 
stack opens.


2. The tooltip appears under the mouse the first time it is displayed, 
but if the mouse moves inside the same object while the tooltip is 
already showing, it will not follow the mouse. That may or may not be a 
problem, depending on what you're doing.


3. If the mouse moves out of the object and then back into it too 
quickly, sometimes the tooltip doesn't get the message and is ignored.


I've found that using a field that follows the mouse is more reliable 
and allows more control, although I do have one project that uses 
tooltips this way. LiveCode's app browser uses them too.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Whats the proper way to show a help field?

2014-11-19 Thread dunbarx
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 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 smooth at all.


Second, read up on the mouseText. This can be used (unless there is some 
other relationship between the mouseLoc and your desired text) to great 
advantage. Do you see how to do this?


Craig



-Original Message-
From: William Prothero proth...@earthednet.org
To: Use-livecode Use-livecode use-livecode@lists.runrev.com
Sent: Wed, Nov 19, 2014 2:19 pm
Subject: Re: Whats the proper way to show a help field?


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:

 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-
 From: Earthednet-wp proth...@earthednet.org
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Wed, Nov 19, 2014 10:44 am
 Subject: Re: Whats the proper way to show a help field?
 
 
 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.
 
 
 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
 
 
 
 -Original Message-
 From: Earthednet-wp proth...@earthednet.org
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Wed, Nov 19, 2014 1:04 am
 Subject: Re: 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 18, 2014, at 8:20 PM, dunb...@aol.com wrote:
 
 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?
 
 
 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 theRect
   doStuff that shows the field and its contents
 end repeat
 end doTheDisplay
 
 The problem with this is I am getting “Recursion Limit” errors. 
 
 
 William A. Prothero
 http://es.earthednet.org/
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription 

 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 

Re: Whats the proper way to show a help field?

2014-11-19 Thread Alejandro Tejada
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 smooth at all.

Could this work?

Here is a very simple method:

1- Create a small field named cursorpos
2- 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 topleft of fld cursorpos to x+20,y
end mousemove

on mouseleave
   hide fld cursorpos
end mouseleave

on mouseenter
   show fld cursorpos
end mouseenter

Use contrasting colors for the background
of the graphic and the small field.

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/LC-Server-on-DreamHost-tp4685924p4686058.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Whats the proper way to show a help field?

2014-11-19 Thread William Prothero
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 mouseMove message 
is initiated when the mouse moves, I won’t need to enclose the whole thing in a 
repeat while loop.

Thanks for the discussion.
Best,
Bill

On Nov 19, 2014, at 4:28 PM, Alejandro Tejada capellan2...@gmail.com wrote:

 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 smooth at all.
 
 Could this work?
 
 Here is a very simple method:
 
 1- Create a small field named cursorpos
 2- 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 topleft of fld cursorpos to x+20,y
 end mousemove
 
 on mouseleave
   hide fld cursorpos
 end mouseleave
 
 on mouseenter
   show fld cursorpos
 end mouseenter
 
 Use contrasting colors for the background
 of the graphic and the small field.
 
 Al
 
 
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/LC-Server-on-DreamHost-tp4685924p4686058.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Whats the proper way to show a help field?

2014-11-18 Thread Alejandro Tejada
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 topleft of fld cursorpos to x+20,y
end mousemove

on mouseleave
   hide fld cursorpos
end mouseleave

on mouseenter
   show fld cursorpos
end mouseenter

Please, use contrasting colors for the background
of the graphic and the small field.

Al
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Whats the proper way to show a help field?

2014-11-18 Thread Earthednet-wp
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 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 topleft of fld cursorpos to x+20,y
 end mousemove
 
 on mouseleave
   hide fld cursorpos
 end mouseleave
 
 on mouseenter
   show fld cursorpos
 end mouseenter
 
 Please, use contrasting colors for the background
 of the graphic and the small field.
 
 Al
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Whats the proper way to show a help field?

2014-11-18 Thread dunbarx
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?


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 theRect
 doStuff that shows the field and its contents
  end repeat
end doTheDisplay

The problem with this is I am getting “Recursion Limit” errors. 


William A. Prothero
http://es.earthednet.org/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Whats the proper way to show a help field?

2014-11-18 Thread Earthednet-wp
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 18, 2014, at 8:20 PM, dunb...@aol.com wrote:
 
 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?
 
 
 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 theRect
 doStuff that shows the field and its contents
  end repeat
 end doTheDisplay
 
 The problem with this is I am getting “Recursion Limit” errors. 
 
 
 William A. Prothero
 http://es.earthednet.org/
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode