]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/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 #if !USE_SHARED_LIBRARY 
  19 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton
, wxControl
) 
  22 wxSpinButton::wxSpinButton() 
  28 bool wxSpinButton::Create(wxWindow 
*parent
, wxWindowID id
, const wxPoint
& pos
, const wxSize
& size
, 
  29             long style
, const wxString
& name
) 
  33     m_windowStyle 
= style
; 
  40     m_windowId 
= (id 
== -1) ? NewControlId() : id
; 
  42     // TODO create spin button 
  46 wxSpinButton::~wxSpinButton() 
  51 //////////////////////////////////////////////////////////////////////////// 
  53 int wxSpinButton::GetValue() const 
  59 void wxSpinButton::SetValue(int val
) 
  64 void wxSpinButton::SetRange(int minVal
, int maxVal
) 
  72 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent
, wxScrollEvent
) 
  74 wxSpinEvent::wxSpinEvent(wxEventType commandType
, int id
): 
  75   wxScrollEvent(commandType
, id
)