wxSpinEvent Class Reference
[Events]

#include <wx/spinbutt.h>

Inheritance diagram for wxSpinEvent:

wxNotifyEvent wxCommandEvent wxEvent wxObject

List of all members.


Detailed Description

This event class is used for the events generated by wxSpinButton and wxSpinCtrl.

Events:

The following event handler macros redirect the events to member function handlers 'func' with prototypes like:

void handlerFuncName(wxSpinEvent& event)

Event macros:
Note that if you handle both SPIN and UP or DOWN events, you will be notified about each of them twice: first the UP/DOWN event will be received and then, if it wasn't vetoed, the SPIN event will be sent.

Library:  wxCore

Category:  Events

See also:
wxSpinButton and wxSpinCtrl

Public Member Functions

 wxSpinEvent (wxEventType commandType=wxEVT_NULL, int id=0)
int GetPosition () const
void SetPosition (int pos)

Constructor & Destructor Documentation

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

The constructor is not normally used by the user code.


Member Function Documentation

int wxSpinEvent::GetPosition (  )  const

Retrieve the current spin button or control value.

void wxSpinEvent::SetPosition ( int  pos  ) 

Set the value associated with the event.



wxWidgets logo

[ top ]