Displaying 1 result from an estimated 1 matches for "on_tree_key_down".
2007 Apr 14
1
how to simulate key_down event(when event.get_key_code()==Wx::K_DOWN) in ListCtrl or TreeCtrl?
...that is, for example, when user pressed a ''j'' on keyboard,the selected
item change into the next one item, just like user press a
Wx::K_DOWN(arrow key down on keyboard) .
but not jump to some item started with a "J" charater.
evt_tree_key_down(TreeTest_Ctrl) { | e | on_tree_key_down(e) }
...
def on_tree_key_down(event)
keycode = event.get_key_code()
case keycode
when 74 # ''j'' ''s keycode
#what should I write here? ...............
end
end
that''s the basic, when I know how to write, i will organize the
program'...