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

 

LCicnButton



Overview:

LCicnButton is a PowerPlant class that is very similar to LButton. It is different from LButton in that it uses the Mac OS `cicn' color icon resource format as the graphical element in the button.

Methods :

The methods in this class are:

 

LCicnButton()  
~LCicnButton()  
DrawSelf()  
HotSpotAction()  
HotSpotResult()  
SetCicns()  

Data Members:

The data members in this class are:

 

mNormalID  
mPushedID  
mNormalCicnH  
mPushedCicnH  

Operation:

As with the LButton class, you provide resource ID numbers for the button in both its normal and pushed states.

Source files:

(Pane Classes)

LCicnButton.h

LCicnButton.cp

See also:

LButton

LControl

LCicnButton()

Purpose:

The constructors create new objects from the passed-in parameters.

Access:

Public

Prototype:

LCicnButton();

LCicnButton( const LCicnButton &inOriginal );

LCicnButton( const SPaneInfo &inPaneInfo,
MessageT inClickedMessage,
ResIDT inNormalID,
ResIDT inPushedID );

LCicnButton( LStream *inStream );
Parameters:

These constructors have the following parameters:

 

const   LCicnButton&  
inOriginal  
A reference to the object you want to copy.  
const   SPaneInfo&  
inPaneInfo  
A reference to the SPaneInfo object that is the  
MessageT  
inClickedMessage  
The message sent when the button is depressed.  
ResIDT  
inNormalID  
Resource ID for normal graphic  
ResIDT  
inPushedID  
Resource ID for pushed graphic  
LStream*  
inStream  
A pointer to a stream object that contains the information to create the LButton object.  

~LCicnButton()

Purpose:

The destructor destroys the object.

Access:

Virtual, Public

Prototype:

virtual ~LCicnButton();
Parameters:

None

DrawSelf()

Purpose:

This method behaves just like the one in LCicnButton() named DrawSelf(), except it draws a `cicn' button instead.

HotSpotAction()

Purpose:

This method behaves just like the one in LCicnButton() named HotSpotAction(), except it works for a `cicn' button instead.

HotSpotResult()

Purpose:

This method behaves just like the one in LCicnButton() named HotSpotResult(), except it works for a `cicn' button instead.

SetCicns()

Purpose:

Specify new ID's for the normal and pushed 'cicn' resources.

Access:

Virtual, Public

Prototype:

virtual void SetCicns( ResIDT inNormalID,
ResIDT inPushedID);
Parameters:

The parameters for this method are:

 

ResIDT  
inNormalID  
The resource ID for the normal graphic.  
ResIDT  
inPushedID  
The resource ID for the pushed graphic.  

Return:

None

mNormalID

Purpose:

This data member is just like the one in LButton named mNormalID, except it is for `cicn' buttons.

mPushedID

Purpose:

This data member is just like the one in LButton named mPushedID, except it is for `cicn' buttons.

mNormalCicnH

Purpose:

This data member holds a handle to the resource for the normal `cicn'.

Access:

Protected

Prototype:

CIconHandle mNormalCicnH;

mPushedCicnH

Purpose:

This data member holds a handle to the resource for the pushed `cicn'.

Access:

Protected

Prototype:

CIconHandle mPushedCicnH;

 


[ 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