mouseChunk | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns a chunk expression describing the location of the word or text group under the mouse pointer. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: word, character, field Property: textStyle Function: dropChunk, selectedChunk, mouseCharChunk Glossary: handler, grouped text, mouse pointer, return, chunk expression, return value Control Structure: function | ||||||
Description | Use the mouseChunk function within a handler to determine which word or text group the mouse is hovering over, in order to take some action based on the current character. The mouseChunk function only returns locations in a field. If the mouse pointer is not over a field, the mouseChunk function returns empty. The return value reports the word the mouse is over. The startChar is the first character of the word, and the endChar is the last character. If the textStyle of the text is "link", the return value specifies the entire text group. To get the text of the word or text group, use the mouseText function.
| ||||||
Tags | ui |