<class name="wxButton">
<description>
<p class="classdesc">
A button is a control that contains a text string,
and is one of the commonest elements of a GUI. It may be placed on a
<ref target="wxdialog">dialog box</ref> or <ref target="wxpanel">panel</ref>, or indeed
almost any other window.</p>
</description>
<parents>
<ref type="help" target="wxControl">wxControl</ref>
<ref type="help" target="wxWindow">wxWindow</ref>
<ref type="help" target="wxEvtHandler">wxEvtHandler</ref>
<ref type="help" target="wxObject">wxObject</ref>

</parents>
<includes>
<header name="wx/button.h"/></includes>
<windowstyles>
<style name="wxBU_LEFT">Left-justifies the label. Windows only.</style><style name="wxBU_TOP">Aligns the label to the top of the button. Windows only.</style><style name="wxBU_RIGHT">Right-justifies the bitmap label. Windows only.</style><style name="wxBU_BOTTOM">Aligns the label to the bottom of the button. Windows only.</style><style name="wxBU_EXACTFIT">Creates the button as small as possible instead of making it of the standard size (which is the default behaviour ).</style><style name="wxNO_BORDER">Creates a flat button. Windows and GTK+ only.</style></windowstyles>
<events>
<event name="EVT_BUTTON(id, func)">BUTTON(id, func)</event></events>
<seealso>

<ref target="wxbitmapbutton">wxBitmapButton</ref>

</seealso>
<members>
<member class="wxButton" name="wxButton"><function type="" name="wxButton"><description>

Default constructor.

</description></function>
<function type="" name="wxButton"><parameters></parameters><seealso>

<ref target="wxbuttoncreate">wxButton::Create</ref><ref target="wxvalidator">wxValidator</ref>

</seealso><description></description></function></member>
<member class="wxButton" name="~wxButton"><function type="" name="~wxButton"><description>

Destructor, destroying the button.

</description></function></member>
<member class="wxButton" name="Create"><function type="bool" name="Create"><parameters></parameters><description>

Button creation function for two-step creation. For more details, see <ref target="wxbuttonconstr">wxButton::wxButton</ref>.

</description></function></member>
<member class="wxButton" name="GetLabel"><function type="wxString" name="GetLabel" suffix="const"><seealso>

<ref target="wxbuttonsetlabel">wxButton::SetLabel</ref>

</seealso><returnvalue>

The button's label.

</returnvalue><description>

Returns the string label for the button.

</description></function></member>
<member class="wxButton" name="GetDefaultSize"><function type="wxSize" name="GetDefaultSize"><description>

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.

</description></function></member>
<member class="wxButton" name="SetDefault"><function type="void" name="SetDefault"><remarks>

Under Windows, only dialog box buttons respond to this function.  As
normal under Windows and Motif, pressing return causes the default button to
be depressed when the return key is pressed. See also <ref target="wxwindowsetfocus">wxWindow::SetFocus</ref>
which sets the keyboard focus for windows and text panel items,
and <ref target="wxpanelsetdefaultitem">wxPanel::SetDefaultItem</ref>.

Note that under Motif, calling this function immediately after
creation of a button and before the creation of other buttons
will cause misalignment of the row of buttons, since default
buttons are larger. To get around this, call <i> SetDefault</i>
after you have created a row of buttons: wxWidgets will
then set the size of all buttons currently on the panel to
the same size.

</remarks><description>

This sets the button to be the default item for the panel or dialog
box.

</description></function></member>
<member class="wxButton" name="SetLabel"><function type="void" name="SetLabel"><parameters></parameters><seealso>

<ref target="wxbuttongetlabel">wxButton::GetLabel</ref>

</seealso><description>

Sets the string label for the button.





</description></function></member></members>
<supported>
<platform name="gtk" status="Y"/><platform name="win32" status="Y"/><platform name="motif" status="Y"/><platform name="x11" status="Y"/><platform name="nanox" status="Y"/><platform name="mgl" status="Y"/><platform name="macos" status="Y"/><platform name="os2" status="Y"/></supported>
</class>
