 |
THE HYPERCARD CENTER |
|
|
Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
clickTextthe clickText
Value returned: text string equal to the word the user clicked or the longest contiguous string of characters with the text style Group around the character that the user clicked The text style Group allows the clickText to extend beyond word boundaries. Examplesput the clickText into theTextClicked get the clickText if it is not empty then go card it
Demo Scripton clickDemo toggleActiveText true -- make sure grouped text is visible answer "Click any text in the Demo Script." & return & ¬ "Click text with the gray underline (grouped text) to get phrases." wait until the mouseClick get the clickText select the clickChunk wait 1 second answer "The text that you clicked was “" & it & "”." end clickDemo
Related Topics
HyperTalk Reference
|