Handlers for Scrolling List Field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 508
- Joined: Sun Dec 18, 2011 7:23 pm
- Location: London
- Contact:
Handlers for Scrolling List Field
I am looking for the handler that tells a scrolling list field that the selected line has changed (using arrow keys of mouse).
Kaveh
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Handlers for Scrolling List Field
First of all let me say that I don't know what you mean by "arrow keys of mouse".
This: Might be the sort of thing you're looking for: I hope so.
This: Might be the sort of thing you're looking for: I hope so.
-
- Livecode Opensource Backer
- Posts: 508
- Joined: Sun Dec 18, 2011 7:23 pm
- Location: London
- Contact:
Re: Handlers for Scrolling List Field
I am so sorry. I meant "arrow keys OR mouse" Sorry for the inadvertent time wasting!!
So if I click on a line, I can use a mouseup handler to get the line clicked and act accordingly.
But what if a line is selected already and I use the up or down arrow keys to move to another line? What is the handler to detect the new line selected?
So if I click on a line, I can use a mouseup handler to get the line clicked and act accordingly.
But what if a line is selected already and I use the up or down arrow keys to move to another line? What is the handler to detect the new line selected?
Kaveh
-
- VIP Livecode Opensource Backer
- Posts: 129
- Joined: Sun Feb 20, 2011 4:26 pm
- Location: Vancouver Island, BC, Canada. ex.UK
- Contact:
Re: Handlers for Scrolling List Field
You should find that selectionChanged will do what you need.
e.g. Field Script:
Paul
e.g. Field Script:
Code: Select all
on selectionChanged
put the selectedLine into fld "myChoiceField"
end selectionChanged