Skip to content

Class: Radio

Properties | Events | Methods | Index of Classes

Provides visual selection icons that are used in groups exclusively within radio containers

Hierarchy

cObject > cUIObject > DfBaseObject > DfBaseWindow > DfBaseUIWindow > DfBaseControl > DfBaseList > DfBaseButton > DfBaseCheckbox > DfBaseRadioButton > RadioButton > Radio

Show full hierarchy and direct subclasses

Library: Windows Application Class Library

Package: Windows.pkg

Description

Radio is used to provide visual selection icons that are used in groups exclusively within radio containers. They are selected by use of the mouse or the selection cursor, which is moved among them with arrow keys. Each Radio object can display a label describing the choice it offers. Radio objects must be placed inside a radio grouping object (RadioGroup, dbRadioGroup, RadioContainer, or dbRadioContainer).

Sample

See samples in RadioGroup, RadioContainer, dbRadioGroup and dbRadioContainer.

If you add a radio object to a container that is not of one of the 4 classes listed above (or descendants), you will get runtime errors that tell you that the radio object could not be registered properly.

Syntax

Use Windows.pkg

Object oRadioContainer is a RadioContainerClass
    :
    Object oObjectName is a Radio
        Set Location to vertical horizontal
        Set Label to text
    End_Object
End_Object

Note

Objects of this class are very simple objects and are used as items by radio-container objects. You are encouraged to keep radio objects as simple as possible (only set their location and label) and to add all other programming changes to their radio-container. The radio-grouping classes are RadioGroup, RadioContainer, dbRadioGroup, and dbRadioContainer.