link text style

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

link text style

Post by Preston Shea » Thu Nov 04, 2010 12:48 am

I wish to change the appearance of group (link) text from blue underline to the same as non-group text in the field so that when a word in the group text is clicked I can supply a translation of the entire group but I don't want the words in the group text to appear and different from the other text in the field. I did this once, but I've forgotten how.
In nova fert animus mutatas dicere formas corpora.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: link text style

Post by Mark » Thu Nov 04, 2010 1:26 am

Hi Preson Shea,

Search for "link" in the dictionary and you'll find a few important and useful hints

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: link text style

Post by bn » Thu Nov 04, 2010 1:30 am

Preston,
you can set the linktext of a chunk, i.e. a word or any other chunk by

Code: Select all

 set the linkText of word 2 of field 1 to "hello"
in the locked field you put:

Code: Select all

on mouseUp
   put the linkText of the mouseChunk into tMyVar
   put tMyVar
end mouseUp
this does not change the appearance of the text but still if clicked will give you the linkText of the word.

is that what you want?

regards
Bernd

Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

Re: link text style

Post by Preston Shea » Thu Nov 04, 2010 1:23 pm

Thank you for your prompt and helpful replies. The commands and properties underlineLinks, textColor and hideGroups are what I was looking for. As an old-timer (HyperCard on Mac512 days) I still think "group" instead of "link" so I missed the help in the dictionary.

Speaking of the old days, I recall (perhaps in SuperCard or early Rev) a listing of properties and commands by object. One could go to "text properties" and see all the settable variables for text or "text commands" and see all the commands that effect text. This was really helpful when I didn't know what I was looking for. The dictionary information in the current edition is great, but you have to know what word to look up. Is this sort of listing available now? I must admit I felt more comfortable when I had big, fat, printed manuals on the table beside the keyboard. I'm just a dinosaur, I guess.

Thanks again!
In nova fert animus mutatas dicere formas corpora.

Post Reply