Button

Help Contents GUI programming Buttons Button
Buttons ButtonDestroy

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:

bfd=Button [][Go!][fd 100 updateGraph]
bback=(Button [][Go!][back 100 updateGraph]
	wxBU_LEFT+wxBU_TOP [0 100][200 100])

Examples:

References:

Buttons ButtonDestroy