RADIOBUTTON Control

The RADIOBUTTON resource-definition statement creates a radio-button control. The control is a small circle that has the given text displayed next to it, typically to its right. The control highlights the circle and sends a message to its parent window when the user selects the button. The control removes the highlight and sends a message when the button is next selected.

Syntax

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

Parameters

style
Specifies styles for the radio button, which can be a combination of BUTTON-class styles and the following styles: WS_TABSTOP, WS_DISABLED, and WS_GROUP.

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

For more information on the text, id, x, y, width, height, style, and extended-style parameters, see Common Control Parameters.

Example

The following example demonstrates the use of the RADIOBUTTON statement:

RADIOBUTTON "Italic", 100, 10, 10, 40, 10
 

See Also

GetDialogBaseUnits