]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/button.h
Remove bufferoverflowu.lib since it's not present with some versions of VC++ 8
[wxWidgets.git] / include / wx / motif / button.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: button.h
3 // Purpose: wxButton class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BUTTON_H_
13 #define _WX_BUTTON_H_
14
15 // Pushbutton
16 class WXDLLEXPORT wxButton: public wxButtonBase
17 {
18 DECLARE_DYNAMIC_CLASS(wxButton)
19
20 public:
21 wxButton() { }
22 wxButton(wxWindow *parent,
23 wxWindowID id,
24 const wxString& label = wxEmptyString,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize, long style = 0,
27 const wxValidator& validator = wxDefaultValidator,
28 const wxString& name = wxButtonNameStr)
29 {
30 Create(parent, id, label, pos, size, style, validator, name);
31 }
32
33 bool Create(wxWindow *parent, wxWindowID id,
34 const wxString& label = wxEmptyString,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize, long style = 0,
37 const wxValidator& validator = wxDefaultValidator,
38 const wxString& name = wxButtonNameStr);
39
40 virtual void SetDefault();
41 virtual void Command(wxCommandEvent& event);
42
43 static wxSize GetDefaultSize();
44
45 // Implementation
46 private:
47 virtual wxSize DoGetBestSize() const;
48 virtual wxSize GetMinSize() const;
49 wxSize OldGetBestSize() const;
50 wxSize OldGetMinSize() const;
51 void SetDefaultShadowThicknessAndResize();
52 };
53
54 #endif
55 // _WX_BUTTON_H_