Contents Up Previous Next

wxSpinEvent

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>

See also

wxSpinButton and wxSpinCtrl

Members

wxSpinEvent::wxSpinEvent
wxSpinEvent::GetPosition
wxSpinEvent::SetPosition


wxSpinEvent::wxSpinEvent

wxSpinEvent(wxEventType commandType = wxEVT_NULL, int id = 0)

The constructor is not normally used by the user code.


wxSpinEvent::GetPosition

int GetPosition() const

Retrieve the current spin button or control value.


wxSpinEvent::SetPosition

void SetPosition(int pos)

Set the value associated with the event.