On Jan 4, 2015, at 2:36 PM, Richmond wrote:

> On 04/01/15 21:34, John Dixon wrote:
>> The 'mouseText' will get the word under the mouse pointer... well, if 
>> 'listbehavior' is turned off..:-)
> 
> Thanks: well that looks as if 'mouseText' and 'clickLine' are functional 
> equivalents.

If listBehavior [or listBehaviour, if you insist  :-)] = true then mouseText 
and the clickText both give the text of the line, and with listBehavior = 
false, the mouseText gives the *word* under the cursor, and the clicktext will 
give the same. (ListBehavior is designed to streamline picking a line from a 
list, so the field messages return whole lines.) But no matter what 
listBehavior is set to, mousetext = clicktext, the difference being whether a 
click is necessary to trigger it.

However, the clickLine (and the mouseLine) gives something like "line 5 of fld 
2". You could do value(the clickLine) to get the text of the line, sometimes 
useful if listBehavior = false. Similarly for the mouseChunk and the clickChunk 
--> "char 56 to 61 of fld 2".

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


_______________________________________________
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

Reply via email to