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 wTextLinkEvent
Seealso:wButton wCheckBox wRadioButton wListBox wComboBox wCheckComboBox 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 combobox disappears.
wEvent_ComboBoxDropDownWhen the list box part of the combobox is shown.
wCheckComboBoxDescription
wEvent_CheckComboBoxWhen the value of the checkcombobox changed.
wEvent_CheckComboBoxCloseUpWhen the list box of the checkcombobox disappears.
wEvent_CheckComboBoxDropDownWhen the list box part of the checkcombobox 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_NoteBookPageChangingThe page selection is about to be changed. This event can be vetoed.
wEvent_NoteBookPageChangedThe page selection was changed.
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.
wHotkeyCtrlDescription
wEvent_HotkeyChangingThe hotkey is about to be changed. This event can be vetoed.
wEvent_HotkeyChangedThe hotkey was changed.

Consts

wEvent_CommandFirst = 32866'i32
wEvent_Menu = 32867'i32
wEvent_MenuRightClick = 32868'i32
wEvent_Button = 32869'i32
wEvent_ButtonEnter = 32870'i32
wEvent_ButtonLeave = 32871'i32
wEvent_CheckBox = 32872'i32
wEvent_ListBox = 32873'i32
wEvent_ListBoxDoubleClick = 32874'i32
wEvent_CheckListBox = 32875'i32
wEvent_RadioBox = 32876'i32
wEvent_RadioButton = 32877'i32
wEvent_ComboBox = 32878'i32
wEvent_ToolRightClick = 32879'i32
wEvent_ToolDropDown = 32880'i32
wEvent_ToolEnter = 32881'i32
wEvent_ComboBoxDropDown = 32882'i32
wEvent_ComboBoxCloseUp = 32883'i32
wEvent_Text = 32884'i32
wEvent_TextCopy = 32885'i32
wEvent_TextCut = 32886'i32
wEvent_TextPaste = 32887'i32
wEvent_TextUpdate = 32888'i32
wEvent_TextEnter = 32889'i32
wEvent_TextMaxlen = 32890'i32
wEvent_CommandLeftClick = 32891'i32
wEvent_CommandLeftDoubleClick = 32892'i32
wEvent_CommandRightClick = 32893'i32
wEvent_CommandRightDoubleClick = 32894'i32
wEvent_CommandSetFocus = 32895'i32
wEvent_CommandKillFocus = 32896'i32
wEvent_CommandEnter = 32897'i32
wEvent_CommandTab = 32898'i32
wEvent_NoteBookPageChanging = 32899'i32
wEvent_NoteBookPageChanged = 32900'i32
wEvent_CalendarSelChanged = 32901'i32
wEvent_CalendarViewChanged = 32902'i32
wEvent_DateChanged = 32903'i32
wEvent_Splitter = 32904'i32
wEvent_HotkeyChanging = 32905'i32
wEvent_HotkeyChanged = 32906'i32
wEvent_CheckComboBox = 32907'i32
wEvent_CheckComboBoxCloseUp = 32908'i32
wEvent_CheckComboBoxDropDown = 32909'i32
wEvent_CommandLast = 32910'i32
wEvent_Tool = 32867'i32
wEvent_TimeChanged = 32903'i32

Methods

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