Using Events
Purpose
To explain how to use the Events tab in wxFormBuilder. This is available in wxFormBuiler v3.0.08 and beyond.
Steps
- Create different ID's for each control. (ex.
ID_BUTTON_SEND) - Click the
Eventstab. - Type the name of the function you want to impliment. (ex.
OnButtonSendClick) - Click the
Generatetoolbar button. (PressF8) - In your inherited class create the function just as you specified in the 'Events' tab.
Example:void MyPanel::OnButtonSendClick( wxCommandEvent& event ) { ::wxMessageBox( wxT("OnButtonSendClick() event fired.") ); }
Notice there is no mention about the event table. Leave it alone. All you write is the implementation code.