Carbon


TXNPrepareFontMenu

Header: MacTextEditor.h Carbon status: Supported

Prepares a Font menu for display.

OSStatus TXNPrepareFontMenu (
    TXNObject iTXNObject, 
    TXNFontMenuObject iTXNFontMenuObject
);
Parameter descriptions
iTXNObject

A variable of type TXNObject. Pass the text object that identifies the document with the Font menu you want to prepare or pass NULL. If you pass NULL, an inactive menu is displayed (appears dimmed).

iTXNFontMenuObject

A variable of type TXNFontMenuObject. You obtain a Font menu object from TXNNewFontMenuObject.

function result

A result code.

DISCUSSION

If the text object’s current selection is a single font, the menu item for that font is checked.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)