OptionButton (statement)
Syntax | OptionButton X,Y,width,height,title$ [,.Identifier] | |
Description | Defines an option button within a dialog box template. | |
Comments | This statement can only appear within a dialog box template (that is, between the Begin Dialog and End Dialog statements). The OptionButton statement accepts the following parameters: | |
Parameter | Description | |
X, Y | Integer coordinates specifying the position of the control (in dialog units) static to the upper left corner of the dialog box. | |
width, height | Integer coordinates specifying the dimensions of the control in dialog units. | |
title$ | String containing text that appears within the option button. This text may contain an ampersand character to denote an accelerator letter, such as "&Portrait" for Portrait , which can be selected by pressing the P accelerator. | |
.Identifier | Name by which this control can be referenced by statements in a dialog function (such as DlgFocus and DlgEnable ). | |
Example |
This example creates a group of option buttons.
|
|
See Also | CancelButton (statement); CheckBox (statement); ComboBox (statement); Dialog (function); Dialog (statement); DropListBox (statement); GroupBox (statement); ListBox (statement); OKButton (statement); OptionGroup (statement); Picture (statement); PushButton (statement); Text (statement); TextBox (statement); Begin Dialog (statement), PictureButton (statement). | |
Note | Accelerators are underlined, and the accelerator combination Alt+letter is used. |