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 26 def initialize(console, line) # The constant id is the arg to super super(EVT_NEW_COMMAND) # client_data should be used to store any information associated # with the event. self.client_data = { :line => line } self.id = console.get_id end