Generic event table macros
| EVT_CUSTOM(event, id, func) | Allows you to add a custom event table entry by specifying the event identifier (such as wxEVT_SIZE), the window identifier, and a member function to call. |
| EVT_CUSTOM_RANGE(event, id1, id2, func) | The same as EVT_CUSTOM, but responds to a range of window identifiers. |
| EVT_COMMAND(id, event, func) | The same as EVT_CUSTOM, but expects a member function with a wxCommandEvent argument. |
| EVT_COMMAND_RANGE(id1, id2, event, func) | The same as EVT_CUSTOM_RANGE, but expects a member function with a wxCommandEvent argument. |
Macros listed by event class
The documentation for specific event macros is organised by event class. Please refer to these sections for details.
| wxhelprefwxActivateEventwxactivateevent | The EVT_ACTIVATE and EVT_ACTIVATE_APP macros intercept activation and deactivation events. |
| wxhelprefwxCommandEventwxcommandevent | A range of commonly-used control events. |
| wxhelprefwxCloseEventwxcloseevent | The EVT_CLOSE macro handles window closure called via wxhelprefwxWindow::Closewxwindowclose. |
| wxhelprefwxDropFilesEventwxdropfilesevent | The EVT_DROP_FILES macros handles file drop events. |
| wxhelprefwxEraseEventwxeraseevent | The EVT_ERASE_BACKGROUND macro is used to handle window erase requests. |
| wxhelprefwxFocusEventwxfocusevent | The EVT_SET_FOCUS and EVT_KILL_FOCUS macros are used to handle keyboard focus events. |
| wxhelprefwxKeyEventwxkeyevent | EVT_CHAR and EVT_CHAR_HOOK macros handle keyboard input for any window. |
| wxhelprefwxIdleEventwxidleevent | The EVT_IDLE macro handle application idle events (to process background tasks, for example). |
| wxhelprefwxInitDialogEventwxinitdialogevent | The EVT_INIT_DIALOG macro is used to handle dialog initialisation. |
| wxhelprefwxListEventwxlistevent | These macros handle wxhelprefwxListCtrlwxlistctrl events. |
| wxhelprefwxMenuEventwxmenuevent | These macros handle special menu events (not menu commands). |
| wxhelprefwxMouseEventwxmouseevent | Mouse event macros can handle either individual mouse events or all mouse events. |
| wxhelprefwxMoveEventwxmoveevent | The EVT_MOVE macro is used to handle a window move. |
| wxhelprefwxPaintEventwxpaintevent | The EVT_PAINT macro is used to handle window paint requests. |
| wxhelprefwxScrollEventwxscrollevent | These macros are used to handle scroll events from wxhelprefwxScrollBarwxscrollbar, wxhelprefwxSliderwxslider,and wxhelprefwxSpinButtonwxspinbutton. |
| wxhelprefwxSizeEventwxsizeevent | The EVT_SIZE macro is used to handle a window resize. |
| wxhelprefwxSplitterEventwxsplitterevent | The EVT_SPLITTER_SASH_POS_CHANGED, EVT_SPLITTER_UNSPLIT and EVT_SPLITTER_DCLICK macros are used to handle the various splitter window events. |
| wxhelprefwxSysColourChangedEventwxsyscolourchangedevent | The EVT_SYS_COLOUR_CHANGED macro is used to handle events informing the application that the user has changed the system colours (Windows only). |
| wxhelprefwxTreeEventwxtreeevent | These macros handle wxhelprefwxTreeCtrlwxtreectrl events. |
| wxhelprefwxUpdateUIEventwxupdateuievent | The EVT_UPDATE_UI macro is used to handle user interface update pseudo-events, which are generated to give the application the chance to update the visual state of menus, toolbars and controls. |