link | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Synonyms | group |
Summary | Used with the textStyle property to make a run of text in a field behave like a single word when clicked. |
Introduced | 1.0 |
Changes | The link keyword was introduced in version 1.1. In previous versions, the group synonym was used, and grouped text could be optionally displayed with a heavy gray underline. |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: field, word, characters Property: textStyle, linkHiliteColor, selected, linkColor, linkText, linkVisitedColor Message: linkClicked Command: show groups, hide groups Function: clickChunk, mouseChunk, clickText, mouseText Glossary: property, keyword, grouped text, command, hypertext, function |
Description | Use the link keyword to create clickable text. Text with its textStyle set to "link" is treated specially by the clickText, clickChunk, mouseText, and mouseChunk functions: a style run of grouped text is treated as a single word. This makes grouped text handy to use for hypertext or "clickable text" features.
To show which text in a field is grouped, it is underlined and displayed in the color specified by the linkColor property. Use the hidegroups command to hide the underline. |
Tags | ui |