Hello.
I've already read the scriptingconferences and made researches on the different topics, but I haven't found (or understand ?) my answer...
I have a list field "myList" with 5 lines.
When I open the card, I would like to display this list with the 1st line highlighted by default and considered like selected.
Hope to be clear, I don't speak English currently...
Thx in advance for your help !
by default hilite the 1st line of a list field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: by default hilite the 1st line of a list field
Hi SuperKRL,
welcome to the forum!
You can do something like this in the script of your card:
If you mean your list field has a "mouseup" script and consider it "clicked"
then you can add a line:
if you mean something different, please explain.
Best
Klaus
welcome to the forum!
You can do something like this in the script of your card:
Code: Select all
on opencard
set the hilitedlines of fld "your field name here..." to 1
end opencard
Not sure what you mean?...and considered like selected.
If you mean your list field has a "mouseup" script and consider it "clicked"
then you can add a line:
Code: Select all
on opencard
set the hilitedlines of fld "your field name here..." to 1
send "mouseup" to fld "your field name here..."
end opencard
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: by default hilite the 1st line of a list field
Klaus.
The OP means to consider the process "as if the line was selected", that is, as if it was clicked. You solution is just fine.
Craig
The OP means to consider the process "as if the line was selected", that is, as if it was clicked. You solution is just fine.
Craig