LStdPopupMenu is a PowerPlant class that is used for managing Mac OS pop-up menus.
Methods :
The methods in this class are:
Data Members:
There are no data members in this class.
Operation:
LStdPopupMenu encapsulates the details of dealing with Mac OS pop-up menus. To create a new pop-up menu, create the required resources with the Constructor resource editor as described in The PowerPlant Book, then use a constructor to create your pop-up menu.
Source files:
Ancestors:
The ancestors this class derives from are:
Purpose:
The constructor creates objects from the passed-in parameters.
Access:
Prototype:
LStdPopupMenu( const SPaneInfo &inPaneInfo,
MessageT inValueMessage,
SInt16 inTitleOptions,
ResIDT inMENUid,
SInt16 inTitleWidth,
SInt16 inPopupVariation,
ResIDT inTextTraitsID,
Str255 inTitle,
OSType inResTypeMENU,
SInt16 inInitialMenuItem );
LStdPopupMenu( const SPaneInfo &inPaneInfo,
MessageT inValueMessage,
SInt32 inMaxValue,
ResIDT inTextTraitsID,
ControlHandle inMacControlH );
LStdPopupMenu( LStream *inStream );Parameters:
These constructors have the following parameters:
|
||
|
||
|
||
|
||
Purpose:
The destructor destroys the object.
Access:
Prototype:
virtual ~LStdPopupMenu();
Purpose:
This method draws the pop-up menu, and is an override of DrawSelf() in LStdControl.
Purpose:
Return the Mac OS MenuHandle associated with a the pop-up menu.
Access:
Prototype:
virtual MenuHandle GetMacMenuH();Parameters:
Return:
MenuHandle containing the Mac OS handle of the menu.
Purpose:
This is a private initializer method used by the internals of the class to set up the pop-up menu.
Access:
Prototype:
void InitStdPopupMenu( SInt16 inInitialMenuItem );Parameters:
This method has the following parameter:
Return: