I have a scrollable field which has values loaded from a database. How do I determine which line is of the scrollable field is selected when the user doubleclicks the mouse.
I know if have to use the mouseDoubleUp. From here I am totally clueless how to retrieve what the user selects.
Thanks for any help!
Warren
Scrollable Field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
You're looking for the 'hilitedLine' property.
HTH,
Jan Schenkel.
Code: Select all
on mouseDoubleUp
put the hilitedLine of me into tHilitedLine
put line tHilitedLine of me into tHilitedText
answer "You doubleclicked on line" && tHilitedLine && \
"with content:" & return & tHilitedText
end mouseDoubleUp
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com