LStdRadioButton is a PowerPlant class that is used for managing Mac OS radio buttons.
Methods :
The methods in this class are:
Data Members:
There are no data members in this class.
Operation:
This class is a very simple extension of LStdControl. A click on a radio button sets the value to one. The button then broadcasts a message that it has been clicked. The broadcast message includes a pointer to the button object that was clicked.
Source files:
Ancestors:
The ancestors this class derives from are:
See Also:
Purpose:
The constructor creates objects from the passed-in parameters.
Access:
Prototype:
LStdRadioButton();
LStdRadioButton( const SPaneInfo &inPaneInfo,
MessageT inValueMessage,
SInt32 inValue,
ResIDT inTextTraitsID,
Str255 inTitle );
LStdRadioButton( const SPaneInfo &inPaneInfo,
MessageT inValueMessage,
SInt32 inValue,
ResIDT inTextTraitsID,
ControlHandle inMacControlH );
LStdRadioButton(const LStdRadioButton &inOriginal);
LStdRadioButton( LStream *inStream );Parameters:
These constructors have the following parameters:
Purpose:
Respond to a click in a the radio button. This method is an override
of HotSpotResult() in LStdControl. It calls SetValue() with the Button_On value.
In the Mac interface, clicking on a radio button always turns it on (or leaves it on). The standard way to turn off a radio button is to turn on another one in the same radio group. A radio group will normally be a Listener of a radio button.
Purpose:
Set the value of the radio button. This method is an override of SetValue() in LStdControl. It first calls the base class method, then broadcasts a message so that other buttons in the radio group (if present) can be turned off.