[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

LStdButton



Overview:

LStdButton is a PowerPlant class that is used for managing Mac OS push buttons.

Methods :

The methods in this class are:

 

LStdButton()  
HotSpotResult()  

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:

(Pane Classes)

LStdControl.h

LStdControl.cp

Ancestors:

The ancestors this class derives from are:

 

LAttachable  
LControl  
LStdControl  
LBroadcaster  
LPane  
 

LStdButton()

Purpose:

The constructors create objects from the passed-in parameters.

Access:

Public

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:

 

const   LStdButton&  
inOriginal  
A reference to the LStdButton object you want to copy.  
const   SPaneInfo&  
inPaneInfo  
A reference to the SPaneInfo object that is the super view.  
MessageT  
inValueMessage  
The message sent when the button is depressed.  
ResIDT  
inTextTraitsID  
The text traits resource ID for the button text.  
Str255  
inTitle  
The text string to put on the button.  
ControlHandle  
inMacControlH  
The handle for the Mac OS control.  
LStream*  
inStream  
A pointer to a stream object that contains the information to create the LStdButton object.  

HotSpotResult()

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.

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000