]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/button.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButton class
8 // Copyright: (c) AUTHOR
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
)
30 inline wxButton(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
, long style
= 0,
33 const wxValidator
& validator
= wxDefaultValidator
,
34 const wxString
& name
= wxButtonNameStr
)
36 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
39 bool Create(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
, long style
= 0,
42 const wxValidator
& validator
= wxDefaultValidator
,
43 const wxString
& name
= wxButtonNameStr
);
47 virtual void SetSize(int x
, int y
, int width
, int height
, int sizeFlags
= wxSIZE_AUTO
);
48 virtual void SetDefault();
49 virtual void SetLabel(const wxString
& label
);
50 virtual wxString
GetLabel() const ;
52 static wxSize
GetDefaultSize();
54 virtual void Command(wxCommandEvent
& event
);