Displaying 2 results from an estimated 2 matches for "treetest_ctrl".
2007 Apr 14
1
how to simulate key_down event(when event.get_key_code()==Wx::K_DOWN) in ListCtrl or TreeCtrl?
...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 o...
2006 Oct 17
0
[681] trunk/wxruby2/samples/treectrl/treectrl.rb: wxMAC does not like menu id''s of 0 so I fixed that also made set_item_text_colour
...class="cx"> TreeTest_ToggleIcon,
</span><span class="cx"> TreeTest_Select,
</span><del>-TreeTest_Unselect = (0..39).to_a
</del><ins>+TreeTest_Unselect = (Wx::ID_HIGHEST..Wx::ID_HIGHEST+39).to_a
</ins><span class="cx"> TreeTest_Ctrl = 1000
</span><span class="cx">
</span><span class="cx"> TreeCtrlIcon_File,
</span><span class="lines">@@ -271,9 +271,10 @@
</span><span class="cx">
</span><span class="cx"> id,cookie...