### Button Styles (Expert Mode)

Styles Tab
The Button Styles dialog box allows you to choose styles and text for the various buttons available. You enter the text for the button control in the multi-line entry field, Text. The ID symbol and value are entered through the ID field. Initially, the ID field will contain a value automatically generated by the IRE. This value is generated by determining the highest control value in the design file and increasing that value by 1.

The following list describes the fields available in this dialog box:

- Push button specifies the control as a push button
- Check box specifies the control as a simple check box
- Auto check box specifies the control as a toggling check box
- Radio button specifies the control as a simple radio button. The application must provide the necessary logic to deselect other radio buttons in the group that this radio button belongs to.
- Auto radio button specifies the control as a radio button that is automatically selected in a group of radio buttons. When the radio button is selected, it becomes highlighted and de-selects any other radio button in the group it belongs to.
- 3 state specifies the control as a complex check box. The check box will not be toggled when selected but can have three states: unchecked, checked, and indeterminate. An indeterminate check box is shown with the interior of the box grayed.
- Auto 3 state specifies the control as a toggled complex check box. The check box will be toggled when selected among three states in the order, unchecked, checked, and indeterminate.
- User button specifies the control as a user button. The application must provide the necessary logic to handle the painting, inverting, or disabling of the button. The parent is notified when the button is selected.
- Default specifies that the button should contain the default emphasis
- SYSCOMMAND specifies that the button is used to invoke a WM_SYSCOMMAND message
- No pointer select prevents an auto radio button from being automatically selected when the user moves the cursor to the button
- Checked sets the check state of a radio button, check box, or 3-state check box. Selecting this option causes the button to be selected when the dialog box is first displayed.
- Autosize causes the button to be automatically sized to the text
- Bitmap specifies that the button that is able to accept a bit-map image
- Icon specifies that the button is able to accept an icon image
- Help specifies that the button is used to invoke help
- No border specifies that the button should not be drawn with a border
- No focus specifies that the button control should not receive the focus when selected
- Highlighted sets the highlight state of a button
- Text specifies that the button is able to accept text with the icon image
- Mini-icon specifies that the button uses a smaller sized icon for its icon image

When you are creating push-button controls, be aware that there are two predefined values in Presentation Manager that can be used. The first value is DID_OK, and is usually associated with the OK push button. The second value is DID_CANCEL and is generally associated with the Cancel push button. The IRE allows you to select either value from the ID field but will not place the definitions in the include header file, because they are already defined in the Presentation Manager include header files.

There are Cancel and Enter buttons along the bottom of the dialog box.

Font & Color Tab contains only a dialog tab

Bidi Tab (only available with OS/2 Warp)