]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/button.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButton class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "button.h"
19 #include "wx/control.h"
21 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr
;
24 class WXDLLEXPORT wxButton
: public wxControl
26 DECLARE_DYNAMIC_CLASS(wxButton
)
30 wxButton(wxWindow
*parent
,
32 const wxString
& label
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
, long style
= 0,
35 const wxValidator
& validator
= wxDefaultValidator
,
36 const wxString
& name
= wxButtonNameStr
)
38 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
41 bool Create(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
42 const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
, long style
= 0,
44 const wxValidator
& validator
= wxDefaultValidator
,
45 const wxString
& name
= wxButtonNameStr
);
47 virtual void SetDefault();
48 virtual void Command(wxCommandEvent
& event
);
50 static wxSize
GetDefaultSize();
53 virtual void ChangeFont(bool keepOriginalSize
= TRUE
);
54 virtual void ChangeBackgroundColour();
55 virtual void ChangeForegroundColour();