The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



GroupIndex


Unit: SDL_onoffbut
Class: TOnOffBut
Declaration: property GroupIndex: integer;

TOnOffBut components belong to the same group if they have the same value on their GroupIndex property. Buttons in the same group behave in a mutually exclusive fashion: when one button in the group is selected (property OnOff = TRUE), all other buttons in the group become unselected (property OnOff = FALSE). When GroupIndex is zero, the button behaves independently of all other buttons on the form.

Note that the property AllowAllOff also controls the behavior of grouped buttons.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): onoffbut



Last Update: 2012-Oct-20