wCommandEvent

These events are generated by menu or sample controls. More complex controls, such as wTreeCtrl, have separate command event classes. Note that the wCommandEvent and wCommandEvent-derived event classes by default propagate upward from the source window up to the first parent which processes the event.

Superclass:wEvent
Subclasses:wStatusBarEvent wSpinEvent wListEvent wTreeEvent wHyperlinkEvent
Seealso:wButton wCheckBox wRadioButton wListBox wComboBox wToolBar wTextCtrl wNoteBook wCalendarCtrl wDatePickerCtrl wTimePickerCtrl wSplitter
Events:
wCommandEventDescription
wEvent_MenuA menu item is selected.
wEvent_CommandLeftClickClicked the left mouse button within the control.
wEvent_CommandLeftDoubleClickDouble-clicked the left mouse button within the control.
wEvent_CommandRightClickClicked the right mouse button within the control.
wEvent_CommandRightDoubleClickDouble-clicked the right mouse button within the control.
wEvent_CommandSetFocusWhen the control receives the keyboard focus.
wEvent_CommandKillFocusWhen the control loses the keyboard focus.
wEvent_CommandEnterWhen enter key was pressed in a control.
wButtonDescription
wEvent_ButtonThe button is clicked.
wEvent_ButtonEnterThe mouse is entering the button.
wEvent_ButtonLeaveThe mouse is leaving the button.
wCheckBoxDescription
wEvent_CheckBoxThe check box is clicked.
wRadioButtonDescription
wEvent_RadioButtonThe radio button is clicked.
wListBoxDescription
wEvent_ListBoxWhen an item on the list is selected or the selection changes.
wEvent_ListBoxDoubleClickWhen the listbox is double-clicked.
wComboBoxDescription
wEvent_ComboBoxWhen an item on the list is selected, calling getValue() returns the new value of selection.
wEvent_ComboBoxCloseUpWhen the list box of the combo box disappears.
wEvent_ComboBoxDropDownWhen the list box part of the combo box is shown.
wToolBarDescription
wEvent_ToolClick left mouse button on the tool bar. Same as wEvent_Menu.
wEvent_ToolRightClickClick right mouse button on the tool bar.
wEvent_ToolDropDownDrop down menu selected. If unhandled, displays the default dropdown menu.
wEvent_ToolEnterThe mouse cursor has moved into or moved off a tool.
wTextCtrlDescription
wEvent_TextWhen the text changes.
wEvent_TextUpdateWhen the control is about to redraw itself.
wEvent_TextMaxlenWhen the user tries to enter more text into the control than the limit.
wEvent_TextEnterWhen pressing Enter key.
wNoteBookDescription
wEvent_NoteBookPageChangedThe page selection was changed.
wEvent_NoteBookPageChangingThe page selection is about to be changed. This event can be vetoed.
wCalendarCtrlDescription
wEvent_CalendarSelChangedThe selected date changed.
wEvent_CalendarViewChangedThe control view changed.
wDatePickerCtrlDescription
wEvent_DateChangedThe selected date changed.
wTimePickerCtrlDescription
wEvent_TimeChangedThe selected time changed.
wSplitterDescription
wEvent_SplitterThe position is dragging by user. This event can be vetoed.

Consts

wEvent_Tool = wEvent_Menu
wEvent_TimeChanged = wEvent_DateChanged

Methods

method getMenuItem(self: wCommandEvent): wMenuItem {...}{.property, inline, raises: [],
    tags: [].}
Returns the menu item (valid forwEvent_Menu and wEvent_MenuRightClick).