]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/button.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButton class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
17 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr
;
20 class WXDLLEXPORT wxButton
: public wxControl
22 DECLARE_DYNAMIC_CLASS(wxButton
)
25 inline wxButton(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
, long style
= 0,
28 const wxValidator
& validator
= wxDefaultValidator
,
29 const wxString
& name
= wxButtonNameStr
)
31 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
34 bool Create(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
, long style
= 0,
37 const wxValidator
& validator
= wxDefaultValidator
,
38 const wxString
& name
= wxButtonNameStr
);
42 virtual void SetDefault();
44 static wxSize
GetDefaultSize();
46 virtual void Command(wxCommandEvent
& event
);
47 virtual bool OS2Command(WXUINT param
, WXWORD id
);
48 virtual WXHBRUSH
OnCtlColor(WXHDC pDC
,
55 // send a notification event, return TRUE if processed
56 bool SendClickEvent();
58 virtual wxSize
DoGetBestSize();