1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/tglbtn.h
3 // Purpose: Declaration of the wxToggleButton class, which implements a
4 // toggle button under wxOS2.
5 // Author: Dave Webster
8 // Copyright: (c) 2005 David A Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_TOGGLEBUTTON_H_
13 #define _WX_TOGGLEBUTTON_H_
15 // Checkbox item (single checkbox)
16 class WXDLLIMPEXP_CORE wxToggleButton
: public wxToggleButtonBase
20 wxToggleButton(wxWindow
*parent
,
22 const wxString
& label
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
,
26 const wxValidator
& validator
= wxDefaultValidator
,
27 const wxString
& name
= wxCheckBoxNameStr
)
29 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
32 bool Create(wxWindow
*parent
,
34 const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxValidator
& validator
= wxDefaultValidator
,
39 const wxString
& name
= wxCheckBoxNameStr
);
41 virtual void SetValue(bool value
);
42 virtual bool GetValue() const ;
44 virtual bool OS2Command(WXUINT param
, WXWORD id
);
45 virtual void Command(wxCommandEvent
& event
);
48 virtual wxSize
DoGetBestSize() const;
49 virtual wxBorder
GetDefaultBorder() const;
50 virtual WXDWORD
OS2GetStyle(long flags
, WXDWORD
*exstyle
= NULL
) const;
53 DECLARE_DYNAMIC_CLASS_NO_COPY(wxToggleButton
)
56 #endif // _WX_TOGGLEBUTTON_H_