Scrollable Field

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Scrollable Field

Post by warrenk » Mon Nov 03, 2008 8:57 pm

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

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon Nov 03, 2008 9:26 pm

You're looking for the 'hilitedLine' property.

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
HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk » Mon Nov 03, 2008 9:30 pm

Jan,

Thanks once again for you help! :D

Warren

Post Reply