Style=

>>-aButtonControl~Style=--"--+-DEFPUSHBUTTON---+--"------------><
                             +-CHECKBOX--------+
                             +-AUTOCHECKBOX----+
                             +-RADIOBUTTON-----+
                             +-AUTORADIOBUTTON-+
                             +-3STATE----------+
                             +-AUTO3STATE------+
                             +-GROUPBOX--------+
                             +-OWNERDRAW-------+


The Style= method changes the style of the associated button control.

Arguments:

The only argument is:

new_Style

A text string that contains one of the following keywords:

DEFPUSHBUTTON

A default push button that is pushed when the Enter key is pressed.

CHECKBOX

A check box the state of which has to be maintained by the program.

AUTOCHECKBOX

A check box the check state of which toggles between checked and unchecked each time the user selects the check box.

RADIOBUTTON

A radio button the state of which has to be maintained by the program.

AUTORADIOBUTTON

A radio button that sets the check state of the button to checked and the check state for all other buttons in the same group to unchecked each time the user selects this radio button.

3STATE

A button that is equal to a check box except that the check box can be grayed as well as checked or unchecked.

AUTO3STATE

A button that is equal to a three-state check box except that the check box changes its state when the user selects it. The state cycles through checked, grayed, and unchecked.

GROUPBOX

A rectangle in which other controls can be grouped. A label is displayed in the upper left corner of the rectangle.

OWNERDRAW

An owner-drawn button that can be used to display a bitmap or graphics. If none of the previous values is specified, the push-button style is set for the associated button control.

Example:

The following example makes the OK button the default button:

button = MyDialog~GetButtonControl("IDOK")
if button == .Nil then return
button~Style="DEFPUSHBUTTON"