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
8 // Copyright: (c) 2003 Mattia Barbon
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_TOGGLEBUTTON_H_
13 #define _WX_TOGGLEBUTTON_H_
15 #include "wx/checkbox.h"
17 class WXDLLIMPEXP_CORE wxToggleButton
: public wxCheckBox
20 wxToggleButton() { Init(); }
21 wxToggleButton( wxWindow
* parent
, wxWindowID id
, const wxString
& label
,
22 const wxPoint
& pos
= wxDefaultPosition
,
23 const wxSize
& size
= wxDefaultSize
,
25 const wxValidator
& val
= wxDefaultValidator
,
26 const wxString
& name
= wxCheckBoxNameStr
)
30 Create( parent
, id
, label
, pos
, size
, style
, val
, name
);
33 bool Create( wxWindow
* parent
, wxWindowID id
, const wxString
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
37 const wxValidator
& val
= wxDefaultValidator
,
38 const wxString
&name
= wxCheckBoxNameStr
);
41 virtual wxBorder
GetDefaultBorder() const { return wxBORDER_NONE
; }
44 DECLARE_DYNAMIC_CLASS(wxToggleButton
)
46 // common part of all constructors
49 m_evtType
= wxEVT_TOGGLEBUTTON
;
53 #endif // _WX_TOGGLEBUTTON_H_