In a datagrid, is it possible to do something when a row is selected, whether it is selected with keyboard or mouse?
For example, I have a "on mouseUp" action which populates some fields when you click on a row in the datagrid; however, what if someone is scrolling through the datagrid with keyboard keys?
Can I make that action happen on selectRow..
Datagrid on select row (with keyboard or mouse)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 366
- Joined: Tue Apr 10, 2012 9:18 am
Re: Datagrid on select row (with keyboard or mouse)
There are the following messages:
- selectionChanged
- EditValue
- CloseFieldEditor
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Livecode Opensource Backer
- Posts: 366
- Joined: Tue Apr 10, 2012 9:18 am
Re: Datagrid on select row (with keyboard or mouse)
Thanks, this did the trick:
I really enjoy how simple the answers are when working in Livecode.
Code: Select all
on selectionChanged
theThingIwantToHappen
end selectionChanged
I really enjoy how simple the answers are when working in Livecode.