Defines a push-button control. The control is a round-cornered rectangle containing the given text. The text is centered in the control. The control sends a message to its parent whenever the user chooses the control.

PUSHBUTTON text, id, x, y, width, height [, style [, extended-style]]


Styles for the pushbutton, which can be a combination of the BS_PUSHBUTTON style and the following styles: WS_TABSTOP, WS_DISABLED, and WS_GROUP.

If you do not specify a style, the default style is BS_PUSHBUTTON | WS_TABSTOP.

For more information about the general syntax of a control statement, see Common Control Parameters.


The following example demonstrates the use of the PUSHBUTTON statement:

PUSHBUTTON "ON", 7, 10, 10, 20, 10

See also


Push Buttons