mouseText | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns 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: character, words, word, field Function: clickText, mouseCharChunk Glossary: handler, grouped text, mouse pointer, return, chunk expression, return value Control Structure: function | ||||||
Description | Use the mouseText function within a handler to determine which word or text group the mouse pointer is hovering over, in order to take some action based on the click. The mouseText function only returns words in a field. If the mouse pointer is not over a field, the mouseText function returns empty. The return value contains the word the mouse pointer is over. If the textStyle of the text is "link", the return value contains the entire text group. To get the location of the word or text group clicked, use the mouseChunk function.
| ||||||
Tags | ui |