Share via


PUSHBUTTON Control (Compact 2013)

3/28/2014

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

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

Reference

Resource-Definition Statements
GetDialogBaseUnits