]>
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"
20 #include "wx/gdicmn.h"
22 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr
;
25 class WXDLLEXPORT wxButton
: public wxControl
27 DECLARE_DYNAMIC_CLASS(wxButton
)
31 wxButton(wxWindow
*parent
,
33 const wxString
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
, long style
= 0,
36 const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxButtonNameStr
)
39 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
42 bool Create(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
43 const wxPoint
& pos
= wxDefaultPosition
,
44 const wxSize
& size
= wxDefaultSize
, long style
= 0,
45 const wxValidator
& validator
= wxDefaultValidator
,
46 const wxString
& name
= wxButtonNameStr
);
48 virtual void SetDefault();
49 virtual void Command(wxCommandEvent
& event
);
52 virtual void ChangeFont(bool keepOriginalSize
= TRUE
);
53 virtual void ChangeBackgroundColour();
54 virtual void ChangeForegroundColour();