Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] [vid] List Query

From: philb::upnaway::com at: 30-Dec-2003 10:06

Hi, I have a query on how to use list. I want to know the offset from the *window* of the mouse when I press the down button. event/offset only gives me the offset from the text field of the list. (see code below) Any help would be appreciated. Cheers Phil rebol [] data: ["AAA" "BBB" "CCC" "DDD" "EEE" "FFF" "GGG" "HHH"] view layout [ list [ f: text 100 feel [ engage: func [face action event] [ if event/type = 'down [ print event/offset ] ] ] ] supply [ if count > length? data [face/show?: false exit] face/show?: true f/text: pick data count ] ]