Page 1 of 1

Scrollable Field

Posted: Mon Nov 03, 2008 8:57 pm
by warrenk
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

Posted: Mon Nov 03, 2008 9:26 pm
by Janschenkel
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.

Posted: Mon Nov 03, 2008 9:30 pm
by warrenk
Jan,

Thanks once again for you help! :D

Warren