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

 

LStdCheckBox



Overview:

LStdCheckBox is a PowerPlant class that is used for managing Mac OS check box controls.

Methods :

The methods in this class are:

 

LStdCheckBox()  
HotSpotResult()  

Data Members:

There are no data members in this class.

Operation:

If the user clicks the control. the value toggles between one and zero.

Source files:

(Pane Classes)

LStdControl.h

LStdControl.cp

Ancestors:

The ancestors this class derives from are:

 

LAttachable  
LControl  
LStdControl  
LBroadcaster  
LPane  
 

LStdCheckBox()

Purpose:

The constructors create objects from the passed-in parameters.

Access:

Public

Prototype:

LStdCheckBox();

LStdCheckBox( const LStdCheckBox &inOriginal );

LStdCheckBox( const SPaneInfo &inPaneInfo,
MessageT inValueMessage,
SInt32 inValue,
ResIDT inTextTraitsID,
Str255 inTitle );

LStdCheckBox( const SPaneInfo &inPaneInfo,
MessageT inValueMessage,
SInt32 inValue,
ResIDT inTextTraitsID,
ControlHandle inMacControlH );

LStdCheckBox( LStream *inStream );
Parameters:

These constructors have the following parameters:

 

const   LStdCheckBox&  
inOriginal  
A reference to the LStdCheckBox 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 check box is clicked.  
SInt32  
inValue  
 
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 LStdCheckBox object.  

HotSpotResult()

Purpose:

This method responds to a click in the check box by toggling the value of the control between checked (value = 0) and unchecked (value = 1). 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