PUSHBUTTON Control

This resource-definition statement creates a push button control. The control is a round-cornered rectangle containing the specified text, whichis centered in the control. The control sends a message to its parent whenever the user selects the control.

Syntax

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

Parameters

style

Specifies styles for the push button, 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.

Example

The following code example shows how to use the PUSHBUTTON statement.

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

See Also

GetDialogBaseUnits