put a link on each line of field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
put a link on each line of field
Hello
I want to know how to make each line of a field be a link .
when I click on the line 1 of the field , I want to do something, click on the line 2 , do another thing , ...
I want to know how to make each line of a field be a link .
when I click on the line 1 of the field , I want to do something, click on the line 2 , do another thing , ...
Re: put a link on each line of field
Mmm... well, to easily do what you wish you could use a list field and determine the line that is clicked... put something like this in the script of the field...
Code: Select all
on mouseDown
switch (word 2 of the clickline)
case 1
answer the long time
break
case 2
answer the long date
break
end switch
end mouseDown
- Attachments
-
- Untitled 1.livecode.zip
- (1.02 KiB) Downloaded 212 times
Re: put a link on each line of field
Bonjour problème,
you really should work through the "Scripting Conference" stacks I mentioned in one of your earlier postings:
http://www.hyperactivesw.com/revscriptc ... ences.html
Maybe start with stack "Controls" which also handles LIST FIELDS among other basic LC things.
Best
Klaus
you really should work through the "Scripting Conference" stacks I mentioned in one of your earlier postings:
http://www.hyperactivesw.com/revscriptc ... ences.html
Maybe start with stack "Controls" which also handles LIST FIELDS among other basic LC things.
Best
Klaus
Re: put a link on each line of field
thanks for your help
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: put a link on each line of field
In addition to list fields, you can also use a locked text field with HTML links, responding to the linkClicked message.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: put a link on each line of field
What everyone said.
Also check out the "link" keyword and the "linkText" property. These give you a lot of control over what happens when the user clicks a chunk of text.
Craig Newman
Also check out the "link" keyword and the "linkText" property. These give you a lot of control over what happens when the user clicks a chunk of text.
Craig Newman