mouseLine

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the mouseLine
mouseLine()
Summary

Returns a chunk expression describing the location of the line of text under the mouse pointer.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the mouseLine
set the backgroundColor of the mouseLine to "yellow"
Values
NameTypeDescription
return

The mouseLine function returns a chunk expression of the form line lineNumber of field fieldNumber.

RelatedKeyword: field, line
Function: mouseCharChunk, mouseChar, clickLine, foundLine, selectedLine
Glossary: handler, mouse pointer, return, chunk expression
Control Structure: function
Description

Use the mouseLine function within a handler to determine which line the mouse is hovering over, in order to take some action based on the click.

The mouseLine function only returns locations in a field. If the mouse pointer is not over a field, the mouseLine function returns empty.

To get a chunk expression describing the exact word or text group that the mouse is over, use the mouseChunk function.

Tagsui