LRadioGroup is a PowerPlant class that is used for managing a group of Controls by ensuring that only one Control in a group is "on" at any time. This is the standard behavior of a set of Radio Buttons.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Although you will normally use this class with StdRadioButton objects, the group members can be any kind of Control. Therefore, you can group your own custom Control objects. This class assumes the "off" value is zero, and the "on" value is one.
RadioGroup and its Controls have a Listener/Broadcaster relationship.
Source files:
See also:
Purpose:
The constructors create objects from the passed-in parameters.
Access:
Prototype:
LRadioGroup();
LRadioGroup( LStream *inStream );Parameters:
The stream constructor has the following parameter:
Purpose:
The destructor destroys the object.
Access:
Prototype:
virtual ~LRadioGroup();
Purpose:
Adds a Control to a Radio Group.
If the Control is "on" it becomes the current radio, turning off the former current radio.
Access:
Prototype:
virtual void AddRadio( LControl *inRadio );Parameters:
The parameter for this method is:
Return:
Purpose:
Return the PaneID of the current RadioButton in the Group.
Access:
Prototype:
virtual PaneIDT GetCurrentRadioID();Parameters:
Return:
Purpose:
React to Messages from Broadcasters, which must be the Controls in the group. This is a pure virtual method (ListenToMessage()) in the base class which you must override. Refer to the description there for more information.
Purpose:
This data member holds the pointer to the current radio button.
Access:
Prototype:
LControl *mCurrentRadio;