Button
Help Contents
GUI programming
Buttons
Button
Button parent alabel onclick
(Button parent alabel onclick style apos size)
outputs a new Button on the parent (a Frame or a Graph),
having the text alabel on it,
and running the onclick instructionlist when the user clicks with the mouse on it.
style can be a combination (use +) of the following constants:
wxBU_LEFT Left-justifies the label. Windows and GTK+ only.
wxBU_TOP Aligns the label to the top of the button. Windows and GTK+ only.
wxBU_RIGHT Right-justifies the bitmap label. Windows and GTK+ only.
wxBU_BOTTOM Aligns the label to the bottom of the button. Windows and GTK+ only.
wxBU_EXACTFIT Creates the button as small as possible instead of making it of the standard size (which is the default behaviour ).
wxNO_BORDER Creates a flat button. Windows and GTK+ only.
apos is the position of the Button (a list of two integer numbers, x and y),
size is the size of the Button (again a list of two integer numbers, width and height).
Examples:
Examples:
References:
ButtonEnable(5), RadioButton(5), BoxSizer(4), ButtonOnClick(3), FrameEnable(3), FrameSetSizer(3), MouseButtons(3), ButtonDestroy(2), CheckBox(2), MessageBox(2), Release Notes for Version 4.685(2), ToggleButton(2), FrameSetBackgroundColor, FrameSetClientSize, FrameSetFontName, FrameSetFontSize, FrameSetFontStyle, FrameSetFontWeight, FrameSetShape, GraphOnLeftDClick, GraphOnLeftDown, GraphOnLeftUp, GraphOnMiddleDClick, GraphOnMiddleDown, GraphOnMiddleUp, GraphOnRightDClick, GraphOnRightDown, GraphOnRightUp, OnMouseLeftDClick, OnMouseLeftDown, OnMouseLeftUp, OnMouseMiddleDClick, OnMouseMiddleDown, OnMouseMiddleUp, OnMouseRightDClick, OnMouseRightDown, OnMouseRightUp, OnTextMouseLeftDClick, OnTextMouseLeftDown, OnTextMouseLeftUp, OnTextMouseMiddleDClick, OnTextMouseMiddleDown, OnTextMouseMiddleUp, OnTextMouseRightDClick, OnTextMouseRightDown, OnTextMouseRightUp, RadioButtons, ToggleButtons, WindowClose, WindowGetLabel, WindowRegisterHotKey, WindowSetExtraStyle