Error getting tags :
error 404Error getting tags :
error 404 mouseText | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
mouseText
Basics
Expander triangle
Type
Function
Syntax
the mouseText mouseText()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the word or text group under the mouse pointer.
Examples

the mouseText
if the style of the mouseText is "group" then showDef the mouseText

Additional Comments
Expander triangle

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.

Value:

The mouseText function returns the text that the mouse is over.

Comments:

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.

Important! Words are defined a little differently by the mouseTextfunction than the way they are used in chunk expressions. A word, for purposes of the mouseText, is any text delimited by spaces, tabs, returns, or punctuation. If the mouse pointer is over a punctuation character, only that character is returned.

User Comments
Expander triangle