mouseChar | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the character the mouse pointer is over. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: characters, character, field Function: mouseLine, clickChar, mouseCharChunk Glossary: handler, mouse pointer, return Control Structure: function | ||||||
Description | Use the mouseChar function within a handler to determine which character the mouse is hovering over, in order to take some action based on the current character. The mouseChar function only returns characters in a field. If the mouse pointer is not over a field, the mouseChar function returns empty. To find the position of the mouseChar within the field, use the mouseCharChunk function. | ||||||
Tags | ui |