This event class is used for the events generated by wxSpinButton and wxSpinCtrl.
Derived from
wxNotifyEvent
wxCommandEvent
wxEvent
wxObject
Include files
<wx/spinbutt.h> or <wx/spinctrl.h>
Event handling
To process input from a spin button, use one of these event handler macros to direct input to member functions that take a wxSpinEvent argument:
EVT_SPIN(id, func) | Generated whenever an arrow is pressed. |
EVT_SPIN_UP(id, func) | Generated when left/up arrow is pressed. |
EVT_SPIN_DOWN(id, func) | Generated when right/down arrow is pressed. |
Members
wxSpinEvent::wxSpinEvent
wxSpinEvent::GetPosition
wxSpinEvent::SetPosition
wxSpinEvent(wxEventType commandType = wxEVT_NULL, int id = 0)
The constructor is not normally used by the user code.
int GetPosition() const
Retrieve the current spin button or control value.
void SetPosition(int pos)
Set the value associated with the event.