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