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
9 // Copyright: (c) 2005 David A Webster
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_TOGGLEBUTTON_H_
14 #define _WX_TOGGLEBUTTON_H_
16 // Checkbox item (single checkbox)
17 class WXDLLIMPEXP_CORE wxToggleButton
: public wxToggleButtonBase
21 wxToggleButton(wxWindow
*parent
,
23 const wxString
& label
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
27 const wxValidator
& validator
= wxDefaultValidator
,
28 const wxString
& name
= wxCheckBoxNameStr
)
30 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
33 bool Create(wxWindow
*parent
,
35 const wxString
& label
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
39 const wxValidator
& validator
= wxDefaultValidator
,
40 const wxString
& name
= wxCheckBoxNameStr
);
42 virtual void SetValue(bool value
);
43 virtual bool GetValue() const ;
45 virtual bool OS2Command(WXUINT param
, WXWORD id
);
46 virtual void Command(wxCommandEvent
& event
);
49 virtual wxSize
DoGetBestSize() const;
50 virtual wxBorder
GetDefaultBorder() const;
51 virtual WXDWORD
OS2GetStyle(long flags
, WXDWORD
*exstyle
= NULL
) const;
54 DECLARE_DYNAMIC_CLASS_NO_COPY(wxToggleButton
)
57 #endif // _WX_TOGGLEBUTTON_H_