Get KEYDOWN - Events in Listboxes ?

BlitzMax Forums/BlitzMax Beginners Area/Get KEYDOWN - Events in Listboxes ?

danielos(Posted 2008) [#1]
Hello!

How is it possible (if at all) to capture keys pressed down while a listbox is active ?
I tried the SetGadgetFilter, without sucess ^^

Greetz,

Daniel


jsp(Posted 2008) [#2]
Try

SetGadgetSensitivity( ListBox1:TGadget,SENSITIZE_KEYS )


danielos(Posted 2008) [#3]
Works, thanks :-)


danielos(Posted 2008) [#4]
but there remains a little problem:
when there are two or more listboxes, EventSource() remains the same...
how can I get the active listbox ?


danielos(Posted 2008) [#5]
I guess I solved it by first getting the EventSource() and then asking if EVENT_KEYDOWN...