TIB_CustomRadioGroup Object
Properties Methods Events

Unit
IB_Controls

Declaration
TIB_CustomRadioGroup = class(TCustomGroupBox)

Description
This control has been designed to provide a selection from a set group of options based on a mutually exclusive set of radio buttons.

Use the Items property to set the names of the buttons.

Use the Values property to specify alternate values that will correspond with the values in the field to which the control is bound.

Here is a typical use of a gender field :


object EditGENDER: TIB_RadioGroup
Width = 130
Height = 21
Columns = 2
Items.Strings = (
'Male'
'Female')
Values.Strings = (
'M'
'F')
DataField = 'GENDER'
DataSource = dsQuery
end



The backspace key will toggle the current button on and off.

Introduced Public Properties
Columns  This property allows multiple vertical columns of buttons to be defined.
DataField  Name of the column to which this control is bound.
DataSource  Reference to the dataset to which this control is bound.
Field  Reference to the column to which this control is bound.
IgnoreColorScheme  This property causes the control to ignore the coloring scheme and allow its color to be maintained manually by the application developer.
ItemIndex  Item that is currently set in the list of buttons.
Items  This property determines the number of and captions of the buttons in the group of radio button controls.
OnPrepareSQL  This event allows for custom alterations to be made to the SELECT statement's WHERE clause at prepare time.
PreventDeleting  Determines if the control can initiate the deletion of records.
PreventEditing  Determines if any editing changes can be made through this control.
PreventInserting  Determines if any inserting changes can be made through this control.
PreventSearching  Determines if any search criteria changes can be made through this control.
ReadOnly  Determins if any modifications can be entered through this control.
SearchAlways  This property can make the control act as though it were always in search mode.
SearchBuffer  Reference to the SearchBuffer for this data bound control.
SearchWithMask  This property makes it so that IBO will continue to enforce the Editmask setting for the colum even when in search mode.
Value  Current value of the contol according to the data column.
Values  This property provides a table of values to store in the database instead of the entries listed in the Items property.

Introduced Public Methods
CanModify
Create
Destroy

Introduced Public Events
OnChange  Property to notify when the contents of the control have been changed.