1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/tglbtn.h
3 // Purpose: Declaration of the wxToggleButton class, which implements a
4 // toggle button under wxMotif.
5 // Author: Mattia Barbon
9 // Copyright: (c) 2003 Mattia Barbon
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_TOGGLEBUTTON_H_
14 #define _WX_TOGGLEBUTTON_H_
16 #include "wx/checkbox.h"
18 class WXDLLEXPORT wxToggleButton
: public wxCheckBox
21 wxToggleButton() { Init(); }
22 wxToggleButton( wxWindow
* parent
, wxWindowID id
, const wxString
& label
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
,
26 const wxValidator
& val
= wxDefaultValidator
,
27 const wxString
& name
= wxCheckBoxNameStr
)
31 Create( parent
, id
, label
, pos
, size
, style
, val
, name
);
34 bool Create( wxWindow
* parent
, wxWindowID id
, const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxValidator
& val
= wxDefaultValidator
,
39 const wxString
&name
= wxCheckBoxNameStr
);
41 DECLARE_DYNAMIC_CLASS(wxToggleButton
)
43 // common part of all constructors
46 m_evtType
= wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
;
50 #endif // _WX_TOGGLEBUTTON_H_