]>
git.saurik.com Git - wxWidgets.git/blob - src/stubs/spinbutt.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     wxSpinButton 
   8 // Copyright:   (c) AUTHOR 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  13 #pragma implementation "spinbutt.h" 
  16 #include "wx/spinbutt.h" 
  18 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton
, wxControl
) 
  20 wxSpinButton::wxSpinButton() 
  26 bool wxSpinButton::Create(wxWindow 
*parent
, wxWindowID id
, const wxPoint
& pos
, const wxSize
& size
, 
  27             long style
, const wxString
& name
) 
  31     m_windowStyle 
= style
; 
  38     m_windowId 
= (id 
== -1) ? NewControlId() : id
; 
  40     // TODO create spin button 
  44 wxSpinButton::~wxSpinButton() 
  49 //////////////////////////////////////////////////////////////////////////// 
  51 int wxSpinButton::GetValue() const 
  57 void wxSpinButton::SetValue(int val
) 
  62 void wxSpinButton::SetRange(int minVal
, int maxVal
) 
  70 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent
, wxScrollEvent
) 
  72 wxSpinEvent::wxSpinEvent(wxEventType commandType
, int id
): 
  73   wxScrollEvent(commandType
, id
)