-/* Character input event type */
- wxEVT_CHAR,
-
- /*
- * Scrollbar event identifiers
- */
- wxEVT_SCROLL_TOP,
- wxEVT_SCROLL_BOTTOM,
- wxEVT_SCROLL_LINEUP,
- wxEVT_SCROLL_LINEDOWN,
- wxEVT_SCROLL_PAGEUP,
- wxEVT_SCROLL_PAGEDOWN,
- wxEVT_SCROLL_THUMBTRACK,
-
- wxEVT_SIZE = wxEVT_FIRST + 200,
- wxEVT_MOVE,
- wxEVT_CLOSE_WINDOW,
- wxEVT_END_SESSION,
- wxEVT_QUERY_END_SESSION,
- wxEVT_ACTIVATE_APP,
- wxEVT_POWER,
- wxEVT_CHAR_HOOK,
- wxEVT_KEY_UP,
- wxEVT_ACTIVATE,
- wxEVT_CREATE,
- wxEVT_DESTROY,
- wxEVT_SHOW,
- wxEVT_ICONIZE,
- wxEVT_MAXIMIZE,
- wxEVT_MOUSE_CAPTURE_CHANGED,
- wxEVT_PAINT,
- wxEVT_ERASE_BACKGROUND,
- wxEVT_NC_PAINT,
- wxEVT_PAINT_ICON,
- wxEVT_MENU_CHAR,
- wxEVT_MENU_INIT,
- wxEVT_MENU_HIGHLIGHT,
- wxEVT_POPUP_MENU_INIT,
- wxEVT_CONTEXT_MENU,
- wxEVT_SYS_COLOUR_CHANGED,
- wxEVT_SETTING_CHANGED,
- wxEVT_QUERY_NEW_PALETTE,
- wxEVT_PALETTE_CHANGED,
- wxEVT_JOY_BUTTON_DOWN,
- wxEVT_JOY_BUTTON_UP,
- wxEVT_JOY_MOVE,
- wxEVT_JOY_ZMOVE,
- wxEVT_DROP_FILES,
- wxEVT_DRAW_ITEM,
- wxEVT_MEASURE_ITEM,
- wxEVT_COMPARE_ITEM,
- wxEVT_INIT_DIALOG,
- wxEVT_IDLE,
- wxEVT_UPDATE_UI,
-
- /* Generic command events */
- // Note: a click is a higher-level event
- // than button down/up
- wxEVT_COMMAND_LEFT_CLICK,
- wxEVT_COMMAND_LEFT_DCLICK,
- wxEVT_COMMAND_RIGHT_CLICK,
- wxEVT_COMMAND_RIGHT_DCLICK,
- wxEVT_COMMAND_SET_FOCUS,
- wxEVT_COMMAND_KILL_FOCUS,
- wxEVT_COMMAND_ENTER,
-
- /* Tree control event types */
- wxEVT_COMMAND_TREE_BEGIN_DRAG,
- wxEVT_COMMAND_TREE_BEGIN_RDRAG,
- wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
- wxEVT_COMMAND_TREE_END_LABEL_EDIT,
- wxEVT_COMMAND_TREE_DELETE_ITEM,
- wxEVT_COMMAND_TREE_GET_INFO,
- wxEVT_COMMAND_TREE_SET_INFO,
- wxEVT_COMMAND_TREE_ITEM_EXPANDED,
- wxEVT_COMMAND_TREE_ITEM_EXPANDING,
- wxEVT_COMMAND_TREE_SEL_CHANGED,
- wxEVT_COMMAND_TREE_SEL_CHANGING,
- wxEVT_COMMAND_TREE_KEY_DOWN,
-
- /* List control event types */
- wxEVT_COMMAND_LIST_BEGIN_DRAG,
- wxEVT_COMMAND_LIST_BEGIN_RDRAG,
- wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
- wxEVT_COMMAND_LIST_END_LABEL_EDIT,
- wxEVT_COMMAND_LIST_DELETE_ITEM,
- wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
- wxEVT_COMMAND_LIST_GET_INFO,
- wxEVT_COMMAND_LIST_SET_INFO,
- wxEVT_COMMAND_LIST_ITEM_SELECTED,
- wxEVT_COMMAND_LIST_ITEM_DESELECTED,
- wxEVT_COMMAND_LIST_KEY_DOWN,
- wxEVT_COMMAND_LIST_INSERT_ITEM,
- wxEVT_COMMAND_LIST_COL_CLICK,
-
- /* Tab and notebook control event types */
- wxEVT_COMMAND_TAB_SEL_CHANGED,
- wxEVT_COMMAND_TAB_SEL_CHANGING,
- wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
- wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING,
-
- /* System misc. */
- wxEVT_END_PROCESS = wxEVT_FIRST + 300
-};
+// ----------------------------------------------------------------------------
+// forward declarations
+// ----------------------------------------------------------------------------
+
+class WXDLLEXPORT wxList;
+
+#if wxUSE_GUI
+ class WXDLLEXPORT wxClientData;
+ class WXDLLEXPORT wxDC;
+ class WXDLLEXPORT wxMenu;
+ class WXDLLEXPORT wxWindow;
+#endif // wxUSE_GUI
+
+// ----------------------------------------------------------------------------
+// Event types
+// ----------------------------------------------------------------------------
+
+#if defined(__BORLANDC__) && defined(__WIN16__)
+ // For 16-bit BC++, these 2 would be identical otherwise (truncated)
+ #define wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED wxEVT_COMMAND_NB_PAGE_CHANGED
+ #define wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING wxEVT_COMMAND_NB_PAGE_CHANGING
+#endif
+
+typedef int wxEventType;
+
+// generate a new unique event type
+extern wxEventType wxNewEventType();
+
+// the standard event types
+extern wxEventType wxEVT_NULL;
+extern wxEventType wxEVT_FIRST;
+
+extern wxEventType wxEVT_COMMAND_BUTTON_CLICKED;
+extern wxEventType wxEVT_COMMAND_CHECKBOX_CLICKED;
+extern wxEventType wxEVT_COMMAND_CHOICE_SELECTED;
+extern wxEventType wxEVT_COMMAND_LISTBOX_SELECTED;
+extern wxEventType wxEVT_COMMAND_LISTBOX_DOUBLECLICKED;
+extern wxEventType wxEVT_COMMAND_CHECKLISTBOX_TOGGLED;
+extern wxEventType wxEVT_COMMAND_TEXT_UPDATED;
+extern wxEventType wxEVT_COMMAND_TEXT_ENTER;
+extern wxEventType wxEVT_COMMAND_MENU_SELECTED;
+extern wxEventType wxEVT_COMMAND_TOOL_CLICKED;
+extern wxEventType wxEVT_COMMAND_SLIDER_UPDATED;
+extern wxEventType wxEVT_COMMAND_RADIOBOX_SELECTED;
+extern wxEventType wxEVT_COMMAND_RADIOBUTTON_SELECTED;
+extern wxEventType wxEVT_COMMAND_SCROLLBAR_UPDATED;
+extern wxEventType wxEVT_COMMAND_VLBOX_SELECTED;
+extern wxEventType wxEVT_COMMAND_COMBOBOX_SELECTED;
+extern wxEventType wxEVT_COMMAND_TOOL_RCLICKED;
+extern wxEventType wxEVT_COMMAND_TOOL_ENTER;
+extern wxEventType wxEVT_COMMAND_SPINCTRL_UPDATED;
+
+// Sockets and timers send events, too
+extern wxEventType wxEVT_SOCKET;
+extern wxEventType wxEVT_TIMER;
+
+// Mouse event types
+extern wxEventType wxEVT_LEFT_DOWN;
+extern wxEventType wxEVT_LEFT_UP;
+extern wxEventType wxEVT_MIDDLE_DOWN;
+extern wxEventType wxEVT_MIDDLE_UP;
+extern wxEventType wxEVT_RIGHT_DOWN;
+extern wxEventType wxEVT_RIGHT_UP;
+extern wxEventType wxEVT_MOTION;
+extern wxEventType wxEVT_ENTER_WINDOW;
+extern wxEventType wxEVT_LEAVE_WINDOW;
+extern wxEventType wxEVT_LEFT_DCLICK;
+extern wxEventType wxEVT_MIDDLE_DCLICK;
+extern wxEventType wxEVT_RIGHT_DCLICK;
+extern wxEventType wxEVT_SET_FOCUS;
+extern wxEventType wxEVT_KILL_FOCUS;
+
+// Non-client mouse events
+extern wxEventType wxEVT_NC_LEFT_DOWN;
+extern wxEventType wxEVT_NC_LEFT_UP;
+extern wxEventType wxEVT_NC_MIDDLE_DOWN;
+extern wxEventType wxEVT_NC_MIDDLE_UP;
+extern wxEventType wxEVT_NC_RIGHT_DOWN;
+extern wxEventType wxEVT_NC_RIGHT_UP;
+extern wxEventType wxEVT_NC_MOTION;
+extern wxEventType wxEVT_NC_ENTER_WINDOW;
+extern wxEventType wxEVT_NC_LEAVE_WINDOW;
+extern wxEventType wxEVT_NC_LEFT_DCLICK;
+extern wxEventType wxEVT_NC_MIDDLE_DCLICK;
+extern wxEventType wxEVT_NC_RIGHT_DCLICK;
+
+// Character input event type
+extern wxEventType wxEVT_CHAR;
+extern wxEventType wxEVT_CHAR_HOOK;
+extern wxEventType wxEVT_NAVIGATION_KEY;
+extern wxEventType wxEVT_KEY_DOWN;
+extern wxEventType wxEVT_KEY_UP;
+
+// Set cursor event
+extern wxEventType wxEVT_SET_CURSOR;
+
+// wxScrollbar and wxSlider event identifiers
+extern wxEventType wxEVT_SCROLL_TOP;
+extern wxEventType wxEVT_SCROLL_BOTTOM;
+extern wxEventType wxEVT_SCROLL_LINEUP;
+extern wxEventType wxEVT_SCROLL_LINEDOWN;
+extern wxEventType wxEVT_SCROLL_PAGEUP;
+extern wxEventType wxEVT_SCROLL_PAGEDOWN;
+extern wxEventType wxEVT_SCROLL_THUMBTRACK;
+extern wxEventType wxEVT_SCROLL_THUMBRELEASE;
+
+// Scroll events from wxWindow
+extern wxEventType wxEVT_SCROLLWIN_TOP;
+extern wxEventType wxEVT_SCROLLWIN_BOTTOM;
+extern wxEventType wxEVT_SCROLLWIN_LINEUP;
+extern wxEventType wxEVT_SCROLLWIN_LINEDOWN;
+extern wxEventType wxEVT_SCROLLWIN_PAGEUP;
+extern wxEventType wxEVT_SCROLLWIN_PAGEDOWN;
+extern wxEventType wxEVT_SCROLLWIN_THUMBTRACK;
+extern wxEventType wxEVT_SCROLLWIN_THUMBRELEASE;
+
+// System events
+extern wxEventType wxEVT_SIZE;
+extern wxEventType wxEVT_MOVE;
+extern wxEventType wxEVT_CLOSE_WINDOW;
+extern wxEventType wxEVT_END_SESSION;
+extern wxEventType wxEVT_QUERY_END_SESSION;
+extern wxEventType wxEVT_ACTIVATE_APP;
+extern wxEventType wxEVT_POWER;
+extern wxEventType wxEVT_ACTIVATE;
+extern wxEventType wxEVT_CREATE;
+extern wxEventType wxEVT_DESTROY;
+extern wxEventType wxEVT_SHOW;
+extern wxEventType wxEVT_ICONIZE;
+extern wxEventType wxEVT_MAXIMIZE;
+extern wxEventType wxEVT_MOUSE_CAPTURE_CHANGED;
+extern wxEventType wxEVT_PAINT;
+extern wxEventType wxEVT_ERASE_BACKGROUND;
+extern wxEventType wxEVT_NC_PAINT;
+extern wxEventType wxEVT_PAINT_ICON;
+extern wxEventType wxEVT_MENU_CHAR;
+extern wxEventType wxEVT_MENU_INIT;
+extern wxEventType wxEVT_MENU_HIGHLIGHT;
+extern wxEventType wxEVT_POPUP_MENU_INIT;
+extern wxEventType wxEVT_CONTEXT_MENU;
+extern wxEventType wxEVT_SYS_COLOUR_CHANGED;
+extern wxEventType wxEVT_SETTING_CHANGED;
+extern wxEventType wxEVT_QUERY_NEW_PALETTE;
+extern wxEventType wxEVT_PALETTE_CHANGED;
+extern wxEventType wxEVT_JOY_BUTTON_DOWN;
+extern wxEventType wxEVT_JOY_BUTTON_UP;
+extern wxEventType wxEVT_JOY_MOVE;
+extern wxEventType wxEVT_JOY_ZMOVE;
+extern wxEventType wxEVT_DROP_FILES;
+extern wxEventType wxEVT_DRAW_ITEM;
+extern wxEventType wxEVT_MEASURE_ITEM;
+extern wxEventType wxEVT_COMPARE_ITEM;
+extern wxEventType wxEVT_INIT_DIALOG;
+extern wxEventType wxEVT_IDLE;
+extern wxEventType wxEVT_UPDATE_UI;
+
+// System misc.
+extern wxEventType wxEVT_END_PROCESS;
+
+// Dial up events
+extern wxEventType wxEVT_DIALUP_CONNECTED;
+extern wxEventType wxEVT_DIALUP_DISCONNECTED;
+
+// Generic command events
+// Note: a click is a higher-level event than button down/up
+extern wxEventType wxEVT_COMMAND_LEFT_CLICK;
+extern wxEventType wxEVT_COMMAND_LEFT_DCLICK;
+extern wxEventType wxEVT_COMMAND_RIGHT_CLICK;
+extern wxEventType wxEVT_COMMAND_RIGHT_DCLICK;
+extern wxEventType wxEVT_COMMAND_SET_FOCUS;
+extern wxEventType wxEVT_COMMAND_KILL_FOCUS;
+extern wxEventType wxEVT_COMMAND_ENTER;
+
+// Tree control event types
+extern wxEventType wxEVT_COMMAND_TREE_BEGIN_DRAG;
+extern wxEventType wxEVT_COMMAND_TREE_BEGIN_RDRAG;
+extern wxEventType wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT;
+extern wxEventType wxEVT_COMMAND_TREE_END_LABEL_EDIT;
+extern wxEventType wxEVT_COMMAND_TREE_DELETE_ITEM;
+extern wxEventType wxEVT_COMMAND_TREE_GET_INFO;
+extern wxEventType wxEVT_COMMAND_TREE_SET_INFO;
+extern wxEventType wxEVT_COMMAND_TREE_ITEM_EXPANDED;
+extern wxEventType wxEVT_COMMAND_TREE_ITEM_EXPANDING;
+extern wxEventType wxEVT_COMMAND_TREE_ITEM_COLLAPSED;
+extern wxEventType wxEVT_COMMAND_TREE_ITEM_COLLAPSING;
+extern wxEventType wxEVT_COMMAND_TREE_SEL_CHANGED;
+extern wxEventType wxEVT_COMMAND_TREE_SEL_CHANGING;
+extern wxEventType wxEVT_COMMAND_TREE_KEY_DOWN;
+extern wxEventType wxEVT_COMMAND_TREE_ITEM_ACTIVATED;
+extern wxEventType wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK;
+extern wxEventType wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK;
+extern wxEventType wxEVT_COMMAND_TREE_END_DRAG;
+
+// List control event types
+extern wxEventType wxEVT_COMMAND_LIST_BEGIN_DRAG;
+extern wxEventType wxEVT_COMMAND_LIST_BEGIN_RDRAG;
+extern wxEventType wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT;
+extern wxEventType wxEVT_COMMAND_LIST_END_LABEL_EDIT;
+extern wxEventType wxEVT_COMMAND_LIST_DELETE_ITEM;
+extern wxEventType wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS;
+extern wxEventType wxEVT_COMMAND_LIST_GET_INFO;
+extern wxEventType wxEVT_COMMAND_LIST_SET_INFO;
+extern wxEventType wxEVT_COMMAND_LIST_ITEM_SELECTED;
+extern wxEventType wxEVT_COMMAND_LIST_ITEM_DESELECTED;
+extern wxEventType wxEVT_COMMAND_LIST_KEY_DOWN;
+extern wxEventType wxEVT_COMMAND_LIST_INSERT_ITEM;
+extern wxEventType wxEVT_COMMAND_LIST_COL_CLICK;
+extern wxEventType wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK;
+extern wxEventType wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK;
+extern wxEventType wxEVT_COMMAND_LIST_ITEM_ACTIVATED;
+
+// Tab and notebook control event types
+extern wxEventType wxEVT_COMMAND_TAB_SEL_CHANGED;
+extern wxEventType wxEVT_COMMAND_TAB_SEL_CHANGING;
+extern wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED;
+extern wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING;
+
+// Splitter events
+extern wxEventType wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED;
+extern wxEventType wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING;
+extern wxEventType wxEVT_COMMAND_SPLITTER_DOUBLECLICKED;
+extern wxEventType wxEVT_COMMAND_SPLITTER_UNSPLIT;
+
+// Wizard events
+extern wxEventType wxEVT_WIZARD_PAGE_CHANGED;
+extern wxEventType wxEVT_WIZARD_PAGE_CHANGING;
+extern wxEventType wxEVT_WIZARD_CANCEL;
+
+// Calendar events
+extern wxEventType wxEVT_CALENDAR_SEL_CHANGED;
+extern wxEventType wxEVT_CALENDAR_DAY_CHANGED;
+extern wxEventType wxEVT_CALENDAR_MONTH_CHANGED;
+extern wxEventType wxEVT_CALENDAR_YEAR_CHANGED;
+extern wxEventType wxEVT_CALENDAR_DOUBLECLICKED;
+extern wxEventType wxEVT_CALENDAR_WEEKDAY_CLICKED;
+
+// Help events
+extern wxEventType wxEVT_HELP;
+extern wxEventType wxEVT_DETAILED_HELP;