Displaying 5 results from an estimated 5 matches for "evt_command_menu_selected".
2007 Apr 13
2
who can give me an EvtHandler#connect example?
...''t know how to use it.
EvtHandler#connect
connect(Integer id, Integer lastId, EventType eventType,
ObjectEventFunction function,
Object userData = nil,
EvtHandler eventSink = nil)
the online doc''s example is write in C++:
frame->Connect( ID_EXIT,
EVT_COMMAND_MENU_SELECTED,
CommandEventHandler(MyFrame::OnQuit) );
is it like this?:
frame.connect(Wx::ID_EXIT, Wx::EVT_COMMAND_MENU_SELECTED,frame.on_exit);
I need to attach event, but not in initialtion function.
thanks!
cy
2006 Oct 17
0
[678] trunk/wxruby2/doc/textile/commandevent.txtl: Fixed a few event macros that did not get fixed by the parser.
...p;nbsp;| ... }*|Process a EVT_COMMAND_LISTBOX_DOUBLECLICKED command,which is generated by a ListBox control.|
</span><span class="cx"> |*evt_menu(id) { | event | ... }*|Process a EVT_COMMAND_MENU_SELECTED command,which is generated by a menu item.|
</span><del>-|*EVT_MENU_RANGE(id1, id2, func)*|Process a EVT_COMMAND_MENU_RANGE command,which is generated by a range of menu items.|
</del><ins>+|*evt_menu_range(id1, id2) { | event &am...
2006 Nov 04
0
[720] trunk/wxruby2/doc/textile/menu.txtl: Update, rubyify and tidy
...used.
</del><ins>+If the menu is part of a menubar, then "MenuBar":menubar.html event
+processing is used, using @evt_menu@.
</ins><span class="cx">
</span><del>-With a popup menu, there is a variety of ways to handle a menu selection event
-(EVT_COMMAND_MENU_SELECTED).
</del><ins>+To handle a popup menu, handle a menu selection event
+(EVT_COMMAND_MENU_SELECTED). Provide @evt_menu@ handlers in the window
+which pops up the menu, or in an ancestor ofthis window.
</ins><span class="cx">
</span><ins>+h2. Example
</...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...COMMAND_LISTBOX_DOUBLECLICKED => Wx::CommandEvent,
- Wx::EVT_COMMAND_CHECKLISTBOX_TOGGLED => Wx::CommandEvent,
- Wx::EVT_COMMAND_TEXT_UPDATED => Wx::CommandEvent,
- Wx::EVT_COMMAND_TEXT_ENTER => Wx::CommandEvent,
- Wx::EVT_COMMAND_TEXT_MAXLEN => Wx::CommandEvent,
- Wx::EVT_COMMAND_MENU_SELECTED => Wx::CommandEvent,
- Wx::EVT_COMMAND_SLIDER_UPDATED => Wx::CommandEvent,
- Wx::EVT_COMMAND_RADIOBOX_SELECTED => Wx::CommandEvent,
- Wx::EVT_COMMAND_RADIOBUTTON_SELECTED => Wx::CommandEvent,
- Wx::EVT_COMMAND_SCROLLBAR_UPDATED => Wx::CommandEvent,
- Wx::EVT_COMMAND_VL...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...COMMAND_LISTBOX_DOUBLECLICKED => Wx::CommandEvent,
+ Wx::EVT_COMMAND_CHECKLISTBOX_TOGGLED => Wx::CommandEvent,
+ Wx::EVT_COMMAND_TEXT_UPDATED => Wx::CommandEvent,
+ Wx::EVT_COMMAND_TEXT_ENTER => Wx::CommandEvent,
+ Wx::EVT_COMMAND_TEXT_MAXLEN => Wx::CommandEvent,
+ Wx::EVT_COMMAND_MENU_SELECTED => Wx::CommandEvent,
+ Wx::EVT_COMMAND_SLIDER_UPDATED => Wx::CommandEvent,
+ Wx::EVT_COMMAND_RADIOBOX_SELECTED => Wx::CommandEvent,
+ Wx::EVT_COMMAND_RADIOBUTTON_SELECTED => Wx::CommandEvent,
+ Wx::EVT_COMMAND_SCROLLBAR_UPDATED => Wx::CommandEvent,
+ Wx::EVT_COMMAND_VL...