core

### Radiobutton Object

The Radiobutton object inserts option buttons into the form. Option buttons are mutually exclusive. You can only have one option button selected inside your report at a time. The ListItems property allows you to define a set of option buttons.

Along with the ability to resize the object, change colors, and change other attributes, you can further customize this object by using these properties:

AlignTextLeft
If set to YES, this moves the text to the left of the option button like this:

Text Here ( )

If set to NO, this moves the text to the right of the option button like this:

( ) Text Here

Bitmap
This allows you to specify a bitmap to use for a selected option button.

The specified bitmap must be the same shape as a standard check box.

BitmapOffState
This allows you to specify a bitmap to use for a deselected option

The specified bitmap must be the same shape as a standard option button.

ListItems
This defines a list of option buttons and its associated values (see the description on the List Choices dialog box below).

The ListItems property displays the List Choices dialog box.

List Choices dialog box

This dialog box allows you to add, rename, and delete option buttons and assign numerical values. Generally, when adding a new option, the value for that option increments automatically, so only one button is selected at a time. However, you can change the numerical values to allow the selection of groups of options with one mouse click when in run mode.

For example, suppose you have five option buttons that you've named Options A through E, and you change their assigned values to the following:

Option buttons | Value
Option A | 0
Option B | 0
Option C | 1
Option D | 2
Option E | 2

When you enter run mode and select Option A, both Option A and Option B will be selected. This is because they're assigned the same value. Similarly, if you select Option E, both Option D and Option E will be selected. Only Option C has a unique value, so when you select it, only it is selected.