]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/button.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "button.h"
15 #include "wx/button.h"
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
27 IMPLEMENT_DYNAMIC_CLASS(wxButton
,wxControl
)
29 //-----------------------------------------------------------------------------
31 wxButton::wxButton(void)
35 wxButton::wxButton( wxWindow
*parent
, wxWindowID id
, const wxString
&label
,
36 const wxPoint
&pos
, const wxSize
&size
,
37 long style
, const wxString
&name
)
39 Create( parent
, id
, label
, pos
, size
, style
, name
);
42 bool wxButton::Create( wxWindow
*parent
, wxWindowID id
, const wxString
&label
,
43 const wxPoint
&pos
, const wxSize
&size
,
44 long style
, const wxString
&name
)
49 void wxButton::SetDefault(void)
53 void wxButton::SetLabel( const wxString
&label
)
55 wxControl::SetLabel( label
);
58 wxString
wxButton::GetLabel(void) const
60 return wxControl::GetLabel();