[SOLVED] Property Inspector Contents section
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
[SOLVED] Property Inspector Contents section
Is the content that you can put in this area HTML? If it is not HTML, then how do you add a hyperlink? In some of the scripting conferences, I have seen that some of the text can be hyperlinks.
Linda
Linda
Last edited by anmldr on Tue Oct 09, 2012 4:37 pm, edited 1 time in total.
Re: Property Inspector Contents section
Hi Linda,
Select the text in a field and choose Link from the Text menu.
Kind regards,
Mark
Select the text in a field and choose Link from the Text menu.
Kind 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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Property Inspector Contents section
Hi.
Not sure what you are asking. When setting the textStyle of several words to "link" that "group" of text is treated as a single word upon such things as "the clicktext". So you can then treat this "grouped" text as a hyperlink if you want. Is that what you meant?
The "contents" in the inspector pertains to dataGrids, table fields, etc. What did you have in mind in that regard?
Do I have any of this right?
Craig Newman
Not sure what you are asking. When setting the textStyle of several words to "link" that "group" of text is treated as a single word upon such things as "the clicktext". So you can then treat this "grouped" text as a hyperlink if you want. Is that what you meant?
The "contents" in the inspector pertains to dataGrids, table fields, etc. What did you have in mind in that regard?
Do I have any of this right?
Craig Newman
Re: Property Inspector Contents section
That is a start. At least it turned blue like a hyperlink and is underlined but I do not see where to enter what to link to...Mark wrote:Select the text in a field and choose Link from the Text menu.
For instance if there were words "I am a link" that you want to be a hyperlink, you select that text and choose Link from the Text menu. It never gives you a choice for you to enter something like "http://www.mysite.com". All that it does is to change the text color to blue and underline it.
Linda
Re: Property Inspector Contents section
Hi Linda,
You need to add a script to that field with the link in it and catch the "linkclicked" message.
Like this, which presume that you only have internet links (http://www....):
Best
Klaus
Yes, that is correct!It never gives you a choice for you to enter something like "http://www.mysite.com".
All that it does is to change the text color to blue and underline it.
You need to add a script to that field with the link in it and catch the "linkclicked" message.
Like this, which presume that you only have internet links (http://www....):
Code: Select all
on linkclicked tLink
launch url tLink
end linkclicked
Klaus
Re: Property Inspector Contents section
Hi Linda,
There are several ways to do this. You could set the htmlText property of a field to, for example,
You can do this by copying this piece of htmlText and executing the following line from the message box:
but there are many more possible ways to set the htmlText property. You just can't do this in the properties inspector.
Another possibility is to execute syntax like this:
Now you can add the following script to your field:
If you don't set a link but instead just select some text and choose Link from the menu, you could do this:
Kind regards,
Mark
There are several ways to do this. You could set the htmlText property of a field to, for example,
Code: Select all
<p>some text <a href="http://somelink.com">this is a link"</a> some text</p>.
Code: Select all
set the htmlText of fld x to the clipboardData["text"]
Another possibility is to execute syntax like this:
Code: Select all
set the linkText of word 3 to 7 of fld x to "http://somelink.com"
Code: Select all
on linkClicked theLink
launch URL theLink
end linkClicked
Code: Select all
on linkClicked theLink
if theLink is "I am a link" then
lunch URL "http://economy-x-talk.com"
else
beep
end if
end linkClicked
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
[SOLVED] Property Inspector Contents section
Great! Hopefully, I am starting to "get it".
Linda
Linda
Re: [SOLVED] Property Inspector Contents section
Go, Linda, Go! 
