Hello,
How do I build each line of a field into a hotword? I'm not sure if hotword is the correct term in Rev but that's what it's called in toolbook.
Regards
Tom
Hotwords
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
It's actually quite straightforward.
Obviously you can start adding more text to the field to experiement with associating the link with other parts of text. And you can add to that basic handler to do lots of useful stuff.
- create a new mainstack
create a field
put some text into line 1 of the field
lock the field
type this in the message box (make sure the new stack is the one listed in the msg box)put this handler in the field:Code: Select all
set the textStyle of line 1 of field 1 to "link"
Code: Select all
on linkClicked theText if theText is not empty then answer "you clicked" && theText end linkClicked
Obviously you can start adding more text to the field to experiement with associating the link with other parts of text. And you can add to that basic handler to do lots of useful stuff.