| Class | Ui::WxWidgets::Widgets::ConsoleNewCommandEvent |
| In: |
ui/wx/widgets/console.rb
|
| Parent: | Wx::CommandEvent |
| EVT_NEW_COMMAND | = | Wx::EvtHandler.register_class(self, nil, 'evt_new_command', 1) | Create a new unique constant identifier, associate this class with events of that identifier, and create a shortcut ‘evt_new_command’ method for setting up this handler. |
# File ui/wx/widgets/console.rb, line 31
31: def initialize(console, line)
32: # The constant id is the arg to super
33: super(EVT_NEW_COMMAND)
34: # client_data should be used to store any information associated
35: # with the event.
36: self.client_data = { :line => line }
37: self.id = console.get_id
38: end