LStdButton is a PowerPlant class that is used for managing Mac OS push buttons.
Methods :
The methods in this class are:
Data Members:
There are no data members in this class.
Operation:
Using this class, you specify the text to display in the button, the text traits resource ID to use for the text display, and the message to send when the button is clicked.
Source files:
Ancestors:
The ancestors this class derives from are:
Purpose:
The constructors create objects from the passed-in parameters.
Access:
Prototype:
LStdButton();
LStdButton( const LStdButton &inOriginal );
LStdButton( const SPaneInfo &inPaneInfo,
MessageT inValueMessage,
ResIDT inTextTraitsID,
Str255 inTitle );
LStdButton( const SPaneInfo &inPaneInfo,
MessageT inValueMessage,
ResIDT inTextTraitsID,
ControlHandle inMacControlH );
LStdButton( LStream *inStream );Parameters:
These constructors have the following parameters:
Purpose:
This method responds to a click in the button by broadcasting the value of the button. This method is an override of HotSpotResult() in the LControl class.