Page 1 of 1
Create Link Label
Posted: Thu Oct 09, 2008 4:10 pm
by warrenk
Can I create a label that is a link? I created the label and on the card open....
set the textStyle of "Register" to link
...where Register is the name of the label. It is not working.
I am not sure if I can create a label as a link. Is this even possible?
Warren
Posted: Thu Oct 09, 2008 5:34 pm
by Janschenkel
You need to refer to the actual label field in your script. Also, it is a bit easier to set the
textStyle of the field's content, and then its
linkText.
Code: Select all
set the textStyle of char 1 to -1 of field "MyLabelField" to "link"
set the linkText of char 1 to -1 of field "MyLabelField" to "This is a Test"
Then you set the script of the label field to something like
Code: Select all
on linkClicked pLink
answer pLink
end linkClicked
Now when you click on the label's linked text, you should get a message box with the text "This is a Test" and an "OK" button.
Hope this helped,
Jan Schenkel.
Posted: Thu Oct 09, 2008 8:55 pm
by warrenk
Jan,
I used your code and the link works great!
Thanks!
Warren