.\" This is a wxWidgets manpage page generated from the XML docs .TH wxButton 3wx 2005-02-15 "wxWidgets" "wxWidgets class documentation" .SH NAME wxButton \- Push button control, displaying text .SH DESCRIPTION A button is a control that contains a text string, and is one of the most common elements of a GUI. It may be placed on a dialog box or panel , or indeed almost any other window. .SH "PARENTS" wxControl wxWindow wxEvtHandler wxObject .SH "INCLUDE FILES" wx/button.h .SH MEMBERS .SS wxButton () Default constructor. .SS wxButton (wxWindow* parentwxWindowID idconst wxString& label = wxEmptyStringconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = 0const wxValidator& validator = wxDefaultValidatorconst wxString& name = ``button") .SS ~wxButton () Destructor, destroying the button. .SS bool Create (wxWindow* parentwxWindowID idconst wxString& label = wxEmptyStringconst wxPoint& pos = wxDefaultPositionconst wxSize& size = wxDefaultSizelong style = 0const wxValidator& validatorconst wxString& name = ``button") Button creation function for two-step creation. For more details, see wxButton::wxButton . .SS wxString GetLabel () Returns the string label for the button. .SS wxSize GetDefaultSize () Returns the default size for the buttons. It is advised to make all the dialog buttons of the same size and this function allows to retrieve the (platform and current font dependent size) which should be the best suited for this. .SS void SetDefault () This sets the button to be the default item for the panel or dialog box. .SS void SetLabel (const wxString& label) Sets the string label for the button. .SH "WINDOW STYLES" .SS wxBU_LEFT Left-justifies the label. Windows and GTK+ only. .SS wxBU_TOP Aligns the label to the top of the button. Windows and GTK+ only. .SS wxBU_RIGHT Right-justifies the bitmap label. Windows and GTK+ only. .SS wxBU_BOTTOM Aligns the label to the bottom of the button. Windows and GTK+ only. .SS wxBU_EXACTFIT Creates the button as small as possible instead of making it of the standard size (which is the default behaviour ). .SS wxNO_BORDER Creates a flat button. Windows and GTK+ only. .SH EVENTS .SS EVT_BUTTON(id, func) Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked. .SH "SEE ALSO" wxControl wxWindow wxEvtHandler wxObject wxBitmapButton .SH "AUTHORS" Documentation content by Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, et al Conversion to manpage format by Arnout Engelen (http://bzzt.net), bugreports welcome.