ChefZ -- 磨劍錄 (A Coder's Log)

慣看秋月春風 一壺濁酒喜相逢 古今多少事 皆賦談笑中
posts - 42, comments - 3, trackbacks - 0, articles - 6

(修)wxWidets 101 - 12 wxWidgets Event List

Posted on 2008-11-16 02:38 chefZ 阅读(1231) 评论(0)  编辑 收藏 引用

  wxWidgets Event List

wxActivateEvent

EVT_ACTIVATE(func)

Process a wxEVT_ACTIVATE event.

EVT_ACTIVATE_APP(func)

Process a wxEVT_ACTIVATE_APP event.

EVT_HIBERNATE(func)

Process a hibernate event, supplying the member function. This event applies to wxApp only, and only on Windows SmartPhone and PocketPC. It is generated when the system is low on memory; the application should free up as much memory as possible, and restore full working when it receives a wxEVT_ACTIVATE or wxEVT_ACTIVATE_APP event.

 

 

wxBitmapButton

EVT_BUTTON(id, func)

Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked.

 

 

wxButton

EVT_BUTTON(id, func)

Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked.

 

 

wxCalculateLayoutEvent

EVT_CALCULATE_LAYOUT(func)

Process a wxEVT_CALCULATE_LAYOUT event, which asks the window to take a 'bite' out of a rectangle provided by the algorithm.

 

 

wxCalendarCtrl

EVT_CALENDAR(id, func)

A day was double clicked in the calendar.

EVT_CALENDAR_SEL_CHANGED(id, func)

The selected date changed.

EVT_CALENDAR_DAY(id, func)

The selected day changed.

EVT_CALENDAR_MONTH(id, func)

The selected month changed.

EVT_CALENDAR_YEAR(id, func)

The selected year changed.

EVT_CALENDAR_WEEKDAY_CLICKED(id, func)

User clicked on the week day header

 

 

wxCheckBox

EVT_CHECKBOX(id, func)

Process a wxEVT_COMMAND_CHECKBOX_CLICKED event, when the checkbox is clicked.

 

 

wxCheckListBox

EVT_CHECKLISTBOX(id, func)

Process a wxEVT_COMMAND_CHECKLISTBOX_TOGGLED event, when an item in the check list box is checked or unchecked.

 

 

wxChoice

EVT_CHOICE(id, func)

Process a wxEVT_COMMAND_CHOICE_SELECTED event, when an item on the list is selected.

 

 

wxCloseEvent

EVT_CLOSE(func)

Process a close event, supplying the member function. This event applies to wxFrame and wxDialog classes.

EVT_QUERY_END_SESSION(func)

Process a query end session event, supplying the member function. This event applies to wxApp only.

EVT_END_SESSION(func)

Process an end session event, supplying the member function. This event applies to wxApp only.

 

 

wxComboBox

EVT_COMBOBOX(id, func)

Process a wxEVT_COMMAND_COMBOBOX_SELECTED event, when an item on the list is selected. Note that calling GetValue returns the new value of selection.

EVT_TEXT(id, func)

Process a wxEVT_COMMAND_TEXT_UPDATED event, when the combobox text changes.

EVT_TEXT_ENTER(id, func)

Process a wxEVT_COMMAND_TEXT_ENTER event, when is pressed in the combobox.

 

 

wxCommandEvent

EVT_COMMAND(id, event, func)

Process a command, supplying the window identifier, command event identifier, and member function.

EVT_COMMAND_RANGE(id1, id2, event, func)

Process a command for a range of window identifiers, supplying the minimum and maximum window identifiers, command event identifier, and member function.

EVT_BUTTON(id, func)

Process a wxEVT_COMMAND_BUTTON_CLICKED command, which is generated by a wxButton control.

EVT_CHECKBOX(id, func)

Process a wxEVT_COMMAND_CHECKBOX_CLICKED command, which is generated by a wxCheckBox control.

EVT_CHOICE(id, func)

Process a wxEVT_COMMAND_CHOICE_SELECTED command, which is generated by a wxChoice control.

EVT_COMBOBOX(id, func)

Process a wxEVT_COMMAND_COMBOBOX_SELECTED command, which is generated by a wxComboBox control.

EVT_LISTBOX(id, func)

Process a wxEVT_COMMAND_LISTBOX_SELECTED command, which is generated by a wxListBox control.

EVT_LISTBOX_DCLICK(id, func)

Process a wxEVT_COMMAND_LISTBOX_DOUBLECLICKED command, which is generated by a wxListBox control.

EVT_MENU(id, func)

Process a wxEVT_COMMAND_MENU_SELECTED command, which is generated by a menu item.

EVT_MENU_RANGE(id1, id2, func)

Process a wxEVT_COMMAND_MENU_RANGE command, which is generated by a range of menu items.

EVT_CONTEXT_MENU(func)

Process the event generated when the user has requested a popup menu to appear by pressing a special keyboard key (under Windows) or by right clicking the mouse.

EVT_RADIOBOX(id, func)

Process a wxEVT_COMMAND_RADIOBOX_SELECTED command, which is generated by a wxRadioBox control.

EVT_RADIOBUTTON(id, func)

Process a wxEVT_COMMAND_RADIOBUTTON_SELECTED command, which is generated by a wxRadioButton control.

EVT_SCROLLBAR(id, func)

Process a wxEVT_COMMAND_SCROLLBAR_UPDATED command, which is generated by a wxScrollBar control. This is provided for compatibility only; more specific scrollbar event macros should be used instead (see wxScrollEvent).

EVT_SLIDER(id, func)

Process a wxEVT_COMMAND_SLIDER_UPDATED command, which is generated by a wxSlider control.

EVT_TEXT(id, func)

Process a wxEVT_COMMAND_TEXT_UPDATED command, which is generated by a wxTextCtrl control.

EVT_TEXT_ENTER(id, func)

Process a wxEVT_COMMAND_TEXT_ENTER command, which is generated by a wxTextCtrl control. Note that you must use wxTE_PROCESS_ENTER flag when creating the control if you want it to generate such events.

EVT_TEXT_MAXLEN(id, func)

Process a wxEVT_COMMAND_TEXT_MAXLEN command, which is generated by a wxTextCtrl control when the user tries to enter more characters into it than the limit previously set with SetMaxLength.

EVT_TOOL(id, func)

Process a wxEVT_COMMAND_TOOL_CLICKED event (a synonym for wxEVT_COMMAND_MENU_SELECTED). Pass the id of the tool.

EVT_TOOL_RANGE(id1, id2, func)

Process a wxEVT_COMMAND_TOOL_CLICKED event for a range of identifiers. Pass the ids of the tools.

EVT_TOOL_RCLICKED(id, func)

Process a wxEVT_COMMAND_TOOL_RCLICKED event. Pass the id of the tool.

EVT_TOOL_RCLICKED_RANGE(id1, id2, func)

Process a wxEVT_COMMAND_TOOL_RCLICKED event for a range of ids. Pass the ids of the tools.

EVT_TOOL_ENTER(id, func)

Process a wxEVT_COMMAND_TOOL_ENTER event. Pass the id of the toolbar itself. The value of wxCommandEvent::GetSelection is the tool id, or -1 if the mouse cursor has moved off a tool.

EVT_COMMAND_LEFT_CLICK(id, func)

Process a wxEVT_COMMAND_LEFT_CLICK command, which is generated by a control (Windows 95 and NT only).

EVT_COMMAND_LEFT_DCLICK(id, func)

Process a wxEVT_COMMAND_LEFT_DCLICK command, which is generated by a control (Windows 95 and NT only).

EVT_COMMAND_RIGHT_CLICK(id, func)

Process a wxEVT_COMMAND_RIGHT_CLICK command, which is generated by a control (Windows 95 and NT only).

EVT_COMMAND_SET_FOCUS(id, func)

Process a wxEVT_COMMAND_SET_FOCUS command, which is generated by a control (Windows 95 and NT only).

EVT_COMMAND_KILL_FOCUS(id, func)

Process a wxEVT_COMMAND_KILL_FOCUS command, which is generated by a control (Windows 95 and NT only).

EVT_COMMAND_ENTER(id, func)

Process a wxEVT_COMMAND_ENTER command, which is generated by a control.

 

 

wxContextMenuEvent

EVT_CONTEXT_MENU(func)

A right click (or other context menu command depending on platform) has been detected.

 

 

wxDatePickerCtrl

EVT_DATE_CHANGED(id, func)

This event fires when the user changes the current selection in the control.

 

 

wxDialUpManager

EVT_DIALUP_CONNECTED(func)

A connection with the network was established.

EVT_DIALUP_DISCONNECTED(func)

The connection with the network was lost.

 

 

wxDropFilesEvent

EVT_DROP_FILES(func)

Process a wxEVT_DROP_FILES event.

 

 

wxEraseEvent

EVT_ERASE_BACKGROUND(func)

Process a wxEVT_ERASE_BACKGROUND event.

 

 

wxFindDialogEvent

EVT_FIND(id, func)

Find button was pressed in the dialog.

EVT_FIND_NEXT(id, func)

Find next button was pressed in the dialog.

EVT_FIND_REPLACE(id, func)

Replace button was pressed in the dialog.

EVT_FIND_REPLACE_ALL(id, func)

Replace all button was pressed in the dialog.

EVT_FIND_CLOSE(id, func)

The dialog is being destroyed, any pointers to it cannot be used any longer.

 

 

wxFocusEvent

EVT_SET_FOCUS(func)

Process a wxEVT_SET_FOCUS event.

EVT_KILL_FOCUS(func)

Process a wxEVT_KILL_FOCUS event.

 

 

wxGrid

EVT_GRID_COL_SIZE(func)

The user resized a column by dragging it. Processes a wxEVT_GRID_COL_SIZE.

EVT_GRID_ROW_SIZE(func)

The user resized a row by dragging it. Processes a wxEVT_GRID_ROW_SIZE.

EVT_GRID_CMD_COL_SIZE(func)

The user resized a column by dragging it; variant taking a window identifier. Processes a wxEVT_GRID_COL_SIZE.

EVT_GRID_CMD_ROW_SIZE(func)

The user resized a row by dragging it; variant taking a window identifier. Processes a wxEVT_GRID_ROW_SIZE.

EVT_GRID_RANGE_SELECT(func)

The user selected a group of contiguous cells. Processes a wxEVT_GRID_RANGE_SELECT.

EVT_GRID_CMD_RANGE_SELECT(id, func)

The user selected a group of contiguous cells; variant taking a window identifier. Processes a wxEVT_GRID_RANGE_SELECT.

EVT_GRID_EDITOR_CREATED(func)

The editor for a cell was created. Processes a wxEVT_GRID_EDITOR_CREATED.

EVT_GRID_CMD_EDITOR_CREATED(id, func)

The editor for a cell was created; variant taking a window identifier. Processes a wxEVT_GRID_EDITOR_CREATED.

 

 

wxGridEditorCreatedEvent

EVT_GRID_EDITOR_CREATED(func)

The editor for a cell was created. Processes a wxEVT_GRID_EDITOR_CREATED.

EVT_GRID_CMD_EDITOR_CREATED(id, func)

The editor for a cell was created; variant taking a window identifier. Processes a wxEVT_GRID_EDITOR_CREATED.

 

 

wxGridRangeSelectEvent

EVT_GRID_RANGE_SELECT(func)

The user selected a group of contiguous cells. Processes a wxEVT_GRID_RANGE_SELECT.

EVT_GRID_CMD_RANGE_SELECT(func)

The user selected a group of contiguous cells; variant taking a window identifier. Processes a wxEVT_GRID_RANGE_SELECT.

 

 

wxGridSizeEvent

EVT_GRID_COL_SIZE(func)

The user resized a column by dragging it. Processes a wxEVT_GRID_COL_SIZE.

EVT_GRID_ROW_SIZE(func)

The user resized a row by dragging it. Processes a wxEVT_GRID_ROW_SIZE.

EVT_GRID_CMD_COL_SIZE(func)

The user resized a column by dragging it; variant taking a window identifier. Processes a wxEVT_GRID_COL_SIZE.

EVT_GRID_CMD_ROW_SIZE(func)

The user resized a row by dragging it; variant taking a window identifier. Processes a wxEVT_GRID_ROW_SIZE.

 

 

wxHelpEvent

EVT_HELP(id, func)

Process a wxEVT_HELP event.

EVT_HELP_RANGE(id1, id2, func)

Process a wxEVT_HELP event for a range of ids.

 

 

wxIconizeEvent

EVT_ICONIZE(func)

Process a wxEVT_ICONIZE event.

 

 

wxIdleEvent

EVT_IDLE(func)

Process a wxEVT_IDLE event.

 

 

wxInitDialogEvent

EVT_INIT_DIALOG(func)

Process a wxEVT_INIT_DIALOG event.

 

 

wxJoystickEvent

EVT_JOY_BUTTON_DOWN(func)

Process a wxEVT_JOY_BUTTON_DOWN event.

EVT_JOY_BUTTON_UP(func)

Process a wxEVT_JOY_BUTTON_UP event.

EVT_JOY_MOVE(func)

Process a wxEVT_JOY_MOVE event.

EVT_JOY_ZMOVE(func)

Process a wxEVT_JOY_ZMOVE event.

EVT_JOYSTICK_EVENTS(func)

Processes all joystick events.

 

 

wxKeyEvent

EVT_KEY_DOWN(func)

Process a wxEVT_KEY_DOWN event (any key has been pressed).

EVT_KEY_UP(func)

Process a wxEVT_KEY_UP event (any key has been released).

EVT_CHAR(func)

Process a wxEVT_CHAR event.

 

 

wxLayoutAlgorithm

EVT_QUERY_LAYOUT_INFO(func)

Process a wxEVT_QUERY_LAYOUT_INFO event, to get size, orientation and alignment from a window. See wxQueryLayoutInfoEvent.

EVT_CALCULATE_LAYOUT(func)

Process a wxEVT_CALCULATE_LAYOUT event, which asks the window to take a 'bite' out of a rectangle provided by the algorithm. See wxCalculateLayoutEvent.

 

 

wxListBox

EVT_LISTBOX(id, func)

Process a wxEVT_COMMAND_LISTBOX_SELECTED event, when an item on the list is selected.

EVT_LISTBOX_DCLICK(id, func)

Process a wxEVT_COMMAND_LISTBOX_DOUBLECLICKED event, when the listbox is double-clicked.

 

 

wxListCtrl

EVT_LIST_BEGIN_DRAG(id, func)

Begin dragging with the left mouse button.

EVT_LIST_BEGIN_RDRAG(id, func)

Begin dragging with the right mouse button.

EVT_LIST_BEGIN_LABEL_EDIT(id, func)

Begin editing a label. This can be prevented by calling Veto().

EVT_LIST_END_LABEL_EDIT(id, func)

Finish editing a label. This can be prevented by calling Veto().

EVT_LIST_DELETE_ITEM(id, func)

Delete an item.

EVT_LIST_DELETE_ALL_ITEMS(id, func)

Delete all items.

EVT_LIST_ITEM_SELECTED(id, func)

The item has been selected.

EVT_LIST_ITEM_DESELECTED(id, func)

The item has been deselected.

EVT_LIST_ITEM_ACTIVATED(id, func)

The item has been activated (ENTER or double click).

EVT_LIST_ITEM_FOCUSED(id, func)

The currently focused item has changed.

EVT_LIST_ITEM_MIDDLE_CLICK(id, func)

The middle mouse button has been clicked on an item.

EVT_LIST_ITEM_RIGHT_CLICK(id, func)

The right mouse button has been clicked on an item.

EVT_LIST_KEY_DOWN(id, func)

A key has been pressed.

EVT_LIST_INSERT_ITEM(id, func)

An item has been inserted.

EVT_LIST_COL_CLICK(id, func)

A column (m_col) has been left-clicked.

EVT_LIST_COL_RIGHT_CLICK(id, func)

A column (m_col) has been right-clicked.

EVT_LIST_COL_BEGIN_DRAG(id, func)

The user started resizing a column - can be vetoed.

EVT_LIST_COL_DRAGGING(id, func)

The divider between columns is being dragged.

EVT_LIST_COL_END_DRAG(id, func)

A column has been resized by the user.

EVT_LIST_CACHE_HINT(id, func)

Prepare cache for a virtual list control

 

 

wxListEvent

EVT_LIST_BEGIN_DRAG(id, func)

Begin dragging with the left mouse button.

EVT_LIST_BEGIN_RDRAG(id, func)

Begin dragging with the right mouse button.

EVT_LIST_BEGIN_LABEL_EDIT(id, func)

Begin editing a label. This can be prevented by calling Veto().

EVT_LIST_END_LABEL_EDIT(id, func)

Finish editing a label. This can be prevented by calling Veto().

EVT_LIST_DELETE_ITEM(id, func)

Delete an item.

EVT_LIST_DELETE_ALL_ITEMS(id, func)

Delete all items.

EVT_LIST_ITEM_SELECTED(id, func)

The item has been selected.

EVT_LIST_ITEM_DESELECTED(id, func)

The item has been deselected.

EVT_LIST_ITEM_ACTIVATED(id, func)

The item has been activated (ENTER or double click).

EVT_LIST_ITEM_FOCUSED(id, func)

The currently focused item has changed.

EVT_LIST_ITEM_MIDDLE_CLICK(id, func)

The middle mouse button has been clicked on an item.

EVT_LIST_ITEM_RIGHT_CLICK(id, func)

The right mouse button has been clicked on an item.

EVT_LIST_KEY_DOWN(id, func)

A key has been pressed.

EVT_LIST_INSERT_ITEM(id, func)

An item has been inserted.

EVT_LIST_COL_CLICK(id, func)

A column (m_col) has been left-clicked.

EVT_LIST_COL_RIGHT_CLICK(id, func)

A column (m_col) (which can be -1 if the click occurred outside any column) has been right-clicked.

EVT_LIST_COL_BEGIN_DRAG(id, func)

The user started resizing a column - can be vetoed.

EVT_LIST_COL_DRAGGING(id, func)

The divider between columns is being dragged.

EVT_LIST_COL_END_DRAG(id, func)

A column has been resized by the user.

EVT_LIST_CACHE_HINT(id, func)

Prepare cache for a virtual list control

 

 

wxMaximizeEvent

EVT_MAXIMIZE(func)

Process a wxEVT_MAXIMIZE event.

 

 

wxMediaEvent

EVT_MEDIA_LOADED(func)

Sent when a media has loaded enough data that it can start playing.

EVT_MEDIA_STOP(func)

Triggerred right before the media stops. You can Veto this event to prevent it from stopping, causing it to continue playing - even if it has reached that end of the media.

EVT_MEDIA_FINISHED(func)

Sent when a media has finished playing in a wxMediaCtrl. Note that if you connect to this event and don't skip it, it will override the looping behaviour of the media control.

 

 

wxMenuEvent

EVT_MENU_OPEN(func)

A menu is about to be opened. On Windows, this is only sent once for each navigation of the menubar (up until all menus have closed).

EVT_MENU_CLOSE(func)

A menu has been just closed.

EVT_MENU_HIGHLIGHT(id, func)

The menu item with the specified id has been highlighted: used to show help prompts in the status bar by wxFrame

EVT_MENU_HIGHLIGHT_ALL(func)

A menu item has been highlighted, i.e. the currently selected menu item has changed.

 

 

wxMouseCaptureChangedEvent

EVT_MOUSE_CAPTURE_CHANGED(func)

Process a wxEVT_MOUSE_CAPTURE_CHANGED event.

 

 

wxMouseEvent

EVT_LEFT_DOWN(func)

Process a wxEVT_LEFT_DOWN event. The handler of this event should normally call event.Skip() to allow the default processing to take place as otherwise the window under mouse wouldn't get the focus.

EVT_LEFT_UP(func)

Process a wxEVT_LEFT_UP event.

EVT_LEFT_DCLICK(func)

Process a wxEVT_LEFT_DCLICK event.

EVT_MIDDLE_DOWN(func)

Process a wxEVT_MIDDLE_DOWN event.

EVT_MIDDLE_UP(func)

Process a wxEVT_MIDDLE_UP event.

EVT_MIDDLE_DCLICK(func)

Process a wxEVT_MIDDLE_DCLICK event.

EVT_RIGHT_DOWN(func)

Process a wxEVT_RIGHT_DOWN event.

EVT_RIGHT_UP(func)

Process a wxEVT_RIGHT_UP event.

EVT_RIGHT_DCLICK(func)

Process a wxEVT_RIGHT_DCLICK event.

EVT_MOTION(func)

Process a wxEVT_MOTION event.

EVT_ENTER_WINDOW(func)

Process a wxEVT_ENTER_WINDOW event.

EVT_LEAVE_WINDOW(func)

Process a wxEVT_LEAVE_WINDOW event.

EVT_MOUSEWHEEL(func)

Process a wxEVT_MOUSEWHEEL event.

EVT_MOUSE_EVENTS(func)

Process all mouse events.

 

 

wxMoveEvent

EVT_MOVE(func)

Process a wxEVT_MOVE event, which is generated when a window is moved.

 

 

wxPaintEvent

EVT_PAINT(func)

Process a wxEVT_PAINT event.

 

 

wxProcessEvent

EVT_END_PROCESS(id, func)

Process a wxEVT_END_PROCESS event. id is the identifier of the process object (the id passed to the wxProcess constructor) or a window to receive the event.

 

 

wxQueryLayoutInfoEvent

EVT_QUERY_LAYOUT_INFO(func)

Process a wxEVT_QUERY_LAYOUT_INFO event, to get size, orientation and alignment from a window.

 

 

wxRadioBox

EVT_RADIOBOX(id, func)

Process a wxEVT_COMMAND_RADIOBOX_SELECTED event, when a radiobutton is clicked.

 

 

wxRadioButton

EVT_RADIOBUTTON(id, func)

Process a wxEVT_COMMAND_RADIOBUTTON_SELECTED event, when the radiobutton is clicked.

 

 

wxSashEvent

EVT_SASH_DRAGGED(id, func)

Process a wxEVT_SASH_DRAGGED event, when the user has finished dragging a sash.

EVT_SASH_DRAGGED_RANGE(id1, id2, func)

Process a wxEVT_SASH_DRAGGED_RANGE event, when the user has finished dragging a sash. The event handler is called when windows with ids in the given range have their sashes dragged.

 

 

wxSashWindow

EVT_SASH_DRAGGED(id, func)

Process a wxEVT_SASH_DRAGGED event, when the user has finished dragging a sash.

EVT_SASH_DRAGGED_RANGE(id1, id2, func)

Process a wxEVT_SASH_DRAGGED_RANGE event, when the user has finished dragging a sash. The event handler is called when windows with ids in the given range have their sashes dragged.

 

 

wxScrollWinEvent

EVT_SCROLLWIN(func)

Process all scroll events.

EVT_SCROLLWIN_TOP(func)

Process wxEVT_SCROLLWIN_TOP scroll-to-top events.

EVT_SCROLLWIN_BOTTOM(func)

Process wxEVT_SCROLLWIN_TOP scroll-to-bottom events.

EVT_SCROLLWIN_LINEUP(func)

Process wxEVT_SCROLLWIN_LINEUP line up events.

EVT_SCROLLWIN_LINEDOWN(func)

Process wxEVT_SCROLLWIN_LINEDOWN line down events.

EVT_SCROLLWIN_PAGEUP(func)

Process wxEVT_SCROLLWIN_PAGEUP page up events.

EVT_SCROLLWIN_PAGEDOWN(func)

Process wxEVT_SCROLLWIN_PAGEDOWN page down events.

EVT_SCROLLWIN_THUMBTRACK(func)

Process wxEVT_SCROLLWIN_THUMBTRACK thumbtrack events (frequent events sent as the user drags the thumbtrack).

EVT_SCROLLWIN_THUMBRELEASE(func)

Process wxEVT_SCROLLWIN_THUMBRELEASE thumb release events.

 

 

wxSetCursorEvent

EVT_SET_CURSOR(func)

Process a wxEVT_SET_CURSOR event.

 

 

wxSizeEvent

EVT_SIZE(func)

Process a wxEVT_SIZE event.

 

 

wxSocketBase

EVT_SOCKET(id, func)

Process a wxEVT_SOCKET event.

 

 

wxSocketEvent

EVT_SOCKET(id, func)

Process a socket event, supplying the member function.

 

 

wxSpinCtrl

EVT_SPINCTRL(id, func)

Generated whenever the numeric value of the spinctrl is updated

 

 

wxSplitterEvent

EVT_SPLITTER_SASH_POS_CHANGING(id, func)

The sash position is in the process of being changed. You may prevent this change from happening by calling Veto or you may also modify the position of the tracking bar to properly reflect the position that would be set if the drag were to be completed at this point. Processes a wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING event.

EVT_SPLITTER_SASH_POS_CHANGED(id, func)

The sash position was changed. This event is generated after the user releases the mouse after dragging the splitter. Processes a wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED event.

EVT_SPLITTER_UNSPLIT(id, func)

The splitter has been just unsplit. Processes a wxEVT_COMMAND_SPLITTER_UNSPLIT event. This event can't be vetoed.

EVT_SPLITTER_DCLICK(id, func)

The sash was double clicked. The default behaviour is to unsplit the window when this happens (unless the minimum pane size has been set to a value greater than zero). This won't happen if you veto this event. Processes a wxEVT_COMMAND_SPLITTER_DOUBLECLICKED event.

 

 

wxSplitterWindow

EVT_SPLITTER_SASH_POS_CHANGING(id, func)

The sash position is in the process of being changed. May be used to modify the position of the tracking bar to properly reflect the position that would be set if the drag were to be completed at this point. Processes a wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING event.

EVT_SPLITTER_SASH_POS_CHANGED(id, func)

The sash position was changed. May be used to modify the sash position before it is set, or to prevent the change from taking place. Processes a wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED event.

EVT_SPLITTER_UNSPLIT(id, func)

The splitter has been just unsplit. Processes a wxEVT_COMMAND_SPLITTER_UNSPLIT event.

EVT_SPLITTER_DCLICK(id, func)

The sash was double clicked. The default behaviour is to unsplit the window when this happens (unless the minimum pane size has been set to a value greater than zero). Processes a wxEVT_COMMAND_SPLITTER_DOUBLECLICKED event.

 

 

wxSysColourChangedEvent

EVT_SYS_COLOUR_CHANGED(func)

Process a wxEVT_SYS_COLOUR_CHANGED event.

 

 

wxTaskBarIcon

EVT_TASKBAR_MOVE(func)

Process a wxEVT_TASKBAR_MOVE event.

EVT_TASKBAR_LEFT_DOWN(func)

Process a wxEVT_TASKBAR_LEFT_DOWN event.

EVT_TASKBAR_LEFT_UP(func)

Process a wxEVT_TASKBAR_LEFT_UP event.

EVT_TASKBAR_RIGHT_DOWN(func)

Process a wxEVT_TASKBAR_RIGHT_DOWN event.

EVT_TASKBAR_RIGHT_UP(func)

Process a wxEVT_TASKBAR_RIGHT_UP event.

EVT_TASKBAR_LEFT_DCLICK(func)

Process a wxEVT_TASKBAR_LEFT_DCLICK event.

EVT_TASKBAR_RIGHT_DCLICK(func)

Process a wxEVT_TASKBAR_RIGHT_DCLICK event.

 

 

wxTextCtrl

EVT_TEXT(id, func)

Respond to a wxEVT_COMMAND_TEXT_UPDATED event, generated when the text changes. Notice that this event will always be sent when the text controls contents changes - whether this is due to user input or comes from the program itself (for example, if SetValue() is called)

EVT_TEXT_ENTER(id, func)

Respond to a wxEVT_COMMAND_TEXT_ENTER event, generated when enter is pressed in a text control (which must have wxTE_PROCESS_ENTER style for this event to be generated).

EVT_TEXT_URL(id, func)

A mouse event occurred over an URL in the text control (wxMSW and wxGTK2 only)

EVT_TEXT_MAXLEN(id, func)

User tried to enter more text into the control than the limit set by SetMaxLength.

 

 

wxToggleButton

EVT_TOGGLEBUTTON(id, func)

Handles button click event.

 

 

wxToolBar

EVT_TOOL(id, func)

Process a wxEVT_COMMAND_TOOL_CLICKED event (a synonym for wxEVT_COMMAND_MENU_SELECTED). Pass the id of the tool.

EVT_MENU(id, func)

The same as EVT_TOOL.

EVT_TOOL_RANGE(id1, id2, func)

Process a wxEVT_COMMAND_TOOL_CLICKED event for a range of identifiers. Pass the ids of the tools.

EVT_MENU_RANGE(id1, id2, func)

The same as EVT_TOOL_RANGE.

EVT_TOOL_RCLICKED(id, func)

Process a wxEVT_COMMAND_TOOL_RCLICKED event. Pass the id of the tool.

EVT_TOOL_RCLICKED_RANGE(id1, id2, func)

Process a wxEVT_COMMAND_TOOL_RCLICKED event for a range of ids. Pass the ids of the tools.

EVT_TOOL_ENTER(id, func)

Process a wxEVT_COMMAND_TOOL_ENTER event. Pass the id of the toolbar itself. The value of wxCommandEvent::GetSelection is the tool id, or -1 if the mouse cursor has moved off a tool.

 

 

wxTreeCtrl

EVT_TREE_BEGIN_DRAG(id, func)

Begin dragging with the left mouse button.

EVT_TREE_BEGIN_RDRAG(id, func)

Begin dragging with the right mouse button.

EVT_TREE_END_DRAG(id, func)

End dragging with the left or right mouse button.

EVT_TREE_BEGIN_LABEL_EDIT(id, func)

Begin editing a label. This can be prevented by calling Veto().

EVT_TREE_END_LABEL_EDIT(id, func)

Finish editing a label. This can be prevented by calling Veto().

EVT_TREE_DELETE_ITEM(id, func)

Delete an item.

EVT_TREE_GET_INFO(id, func)

Request information from the application.

EVT_TREE_SET_INFO(id, func)

Information is being supplied.

EVT_TREE_ITEM_ACTIVATED(id, func)

The item has been activated, i.e. chosen by double clicking it with mouse or from keyboard

EVT_TREE_ITEM_COLLAPSED(id, func)

The item has been collapsed.

EVT_TREE_ITEM_COLLAPSING(id, func)

The item is being collapsed. This can be prevented by calling Veto().

EVT_TREE_ITEM_EXPANDED(id, func)

The item has been expanded.

EVT_TREE_ITEM_EXPANDING(id, func)

The item is being expanded. This can be prevented by calling Veto().

EVT_TREE_ITEM_RIGHT_CLICK(id, func)

The user has clicked the item with the right mouse button.

EVT_TREE_ITEM_MIDDLE_CLICK(id, func)

The user has clicked the item with the middle mouse button.

EVT_TREE_SEL_CHANGED(id, func)

Selection has changed.

EVT_TREE_SEL_CHANGING(id, func)

Selection is changing. This can be prevented by calling Veto().

EVT_TREE_KEY_DOWN(id, func)

A key has been pressed.

EVT_TREE_ITEM_GETTOOLTIP(id, func)

The opportunity to set the item tooltip is being given to the application (call wxTreeEvent::SetToolTip). Windows only.

EVT_TREE_ITEM_MENU(id, func)

The context menu for the selected item has been requested, either by a right click or by using the menu key.

EVT_TREE_STATE_IMAGE_CLICK(id, func)

The state image has been clicked. Windows only.

 

 

wxTreeEvent

EVT_TREE_BEGIN_DRAG(id, func)

The user has started dragging an item with the left mouse button. The event handler must call wxTreeEvent::Allow() for the drag operation to continue.

EVT_TREE_BEGIN_RDRAG(id, func)

The user has started dragging an item with the right mouse button. The event handler must call wxTreeEvent::Allow() for the drag operation to continue.

EVT_TREE_BEGIN_LABEL_EDIT(id, func)

Begin editing a label. This can be prevented by calling Veto().

EVT_TREE_END_DRAG(id, func)

The user has released the mouse after dragging an item.

EVT_TREE_END_LABEL_EDIT(id, func)

The user has finished editing a label. This can be prevented by calling Veto().

EVT_TREE_DELETE_ITEM(id, func)

A tree item has been deleted.

EVT_TREE_ITEM_ACTIVATED(id, func)

An item has been activated (e.g. double clicked).

EVT_TREE_ITEM_COLLAPSED(id, func)

The item has been collapsed.

EVT_TREE_ITEM_COLLAPSING(id, func)

The item is being collapsed. This can be prevented by calling Veto().

EVT_TREE_ITEM_EXPANDED(id, func)

The item has been expanded.

EVT_TREE_ITEM_EXPANDING(id, func)

The item is being expanded. This can be prevented by calling Veto().

EVT_TREE_ITEM_RIGHT_CLICK(id, func)

The user has clicked the item with the right mouse button.

EVT_TREE_ITEM_MIDDLE_CLICK(id, func)

The user has clicked the item with the middle mouse button.

EVT_TREE_KEY_DOWN(id, func)

A key has been pressed.

EVT_TREE_SEL_CHANGED(id, func)

Selection has changed.

EVT_TREE_SEL_CHANGING(id, func)

Selection is changing. This can be prevented by calling Veto().

EVT_TREE_KEY_DOWN(id, func)

A key has been pressed.

EVT_TREE_ITEM_GETTOOLTIP(id, func)

The opportunity to set the item tooltip is being given to the application (call wxTreeEvent::SetToolTip). Windows only.

EVT_TREE_ITEM_MENU(id, func)

The context menu for the selected item has been requested, either by a right click or by using the menu key.

EVT_TREE_STATE_IMAGE_CLICK(id, func)

The state image has been clicked. Windows only.

 

 

wxUpdateUIEvent

EVT_UPDATE_UI(id, func)

Process a wxEVT_UPDATE_UI event for the command with the given id.

EVT_UPDATE_UI_RANGE(id1, id2, func)

Process a wxEVT_UPDATE_UI event for any command with id included in the given range.

 

 

wxWindowCreateEvent

EVT_WINDOW_CREATE(func)

Process a wxEVT_CREATE event.

 

 

wxWindowDestroyEvent

EVT_WINDOW_DESTROY(func)

Process a wxEVT_DESTROY event.

 

 

wxWizard

EVT_WIZARD_PAGE_CHANGED(id, func)

The page has just been changed (this event cannot be vetoed).

EVT_WIZARD_PAGE_CHANGING(id, func)

The page is being changed (this event can be vetoed).

EVT_WIZARD_CANCEL(id, func)

The user attempted to cancel the wizard (this event may also be vetoed).

EVT_WIZARD_HELP(id, func)

The wizard help button was pressed.

EVT_WIZARD_FINISHED(id, func)

The wizard finished button was pressed.

 

 

wxWizardEvent

EVT_WIZARD_PAGE_CHANGED(id, func)

The page has been just changed (this event can not be vetoed).

EVT_WIZARD_PAGE_CHANGING(id, func)

The page is being changed (this event can be vetoed).

EVT_WIZARD_CANCEL(id, func)

The user attempted to cancel the wizard (this event may also be vetoed).

EVT_WIZARD_HELP(id, func)

The wizard help button was pressed.

EVT_WIZARD_FINISHED(id, func)

The wizard finished button was pressed.


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理