clickWord?

Peter M. Brigham pmbrig at gmail.com
Sun Jan 4 15:35:40 EST 2015


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
pmbrig at gmail.com
http://home.comcast.net/~pmbrig





More information about the use-livecode mailing list