]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/button.h
Getting rid of odd control characters at EOL in source.
[wxWidgets.git] / include / wx / os2 / button.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: button.h
3 // Purpose: wxButton class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/13/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BUTTON_H_
13 #define _WX_BUTTON_H_
14
15 #include "wx/control.h"
16
17 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
18
19 // Pushbutton
20 class WXDLLEXPORT wxButton: public wxButtonBase
21 {
22 public:
23 inline wxButton() {}
24 inline wxButton( wxWindow* pParent
25 ,wxWindowID vId
26 ,const wxString& rsLabel
27 ,const wxPoint& rPos = wxDefaultPosition
28 ,const wxSize& rSize = wxDefaultSize
29 ,long lStyle = 0
30 #if wxUSE_VALIDATORS
31 ,const wxValidator& rValidator = wxDefaultValidator
32 #endif
33 ,const wxString& rsName = wxButtonNameStr
34 )
35 {
36 Create( pParent
37 ,vId
38 ,rsLabel
39 ,rPos
40 ,rSize
41 ,lStyle
42 #if wxUSE_VALIDATORS
43 ,rValidator
44 #endif
45 ,rsName
46 );
47 }
48
49 bool Create( wxWindow* pParent
50 ,wxWindowID vId
51 ,const wxString& rsLabel
52 ,const wxPoint& rPos = wxDefaultPosition
53 ,const wxSize& rSize = wxDefaultSize
54 ,long lStyle = 0
55 #if wxUSE_VALIDATORS
56 ,const wxValidator& rValidator = wxDefaultValidator
57 #endif
58 ,const wxString& rsName = wxButtonNameStr
59 );
60
61 virtual ~wxButton();
62
63 virtual void SetDefault(void);
64 static wxSize GetDefaultSize(void);
65 virtual void Command(wxCommandEvent& rEvent);
66 virtual bool OS2Command( WXUINT uParam
67 ,WXWORD vId
68 );
69 virtual WXHBRUSH OnCtlColor( WXHDC hDC
70 ,WXHWND hWnd
71 ,WXUINT uCtlColor
72 ,WXUINT uMessage
73 ,WXWPARAM wParam
74 ,WXLPARAM lParam
75 );
76 void MakeOwnerDrawn(void);
77
78 virtual MRESULT WindowProc( WXUINT uMsg
79 ,WXWPARAM wParam
80 ,WXLPARAM lParam
81 );
82
83 protected:
84
85 bool SendClickEvent(void);
86 virtual wxSize DoGetBestSize(void) const;
87 private:
88 DECLARE_DYNAMIC_CLASS(wxButton)
89 }; // end of CLASS wxButton
90
91 #endif
92 // _WX_BUTTON_H_
93