Up   Previous   Next  

Initializing MLTE

You need to initialize MLTE before you can use any MLTE function except the two functions that display static text-- TXNDrawUnicodeTextBox and TXNDrawCFStringTextBox . You should initialize MLTE at the same time you call other initialization functions for your application.

At the very least, to use MLTE your application must call the MLTE initialization function TXNInitTextension. On a more practical level, most applications need to provide users with a Font menu. So your application should set up the menu bar and the Font menu right after it calls the MLTE initialization function. To set up your application to use MLTE functions and provide users with a Font menu you need to do the following:

Setting Up Font Descriptions

Assigning Initialization Options

Calling the MLTE Initialization Function

Setting Up the Menu Bar

Creating a Font Menu Object


Copyright © 2001 Apple Computer, Inc. (Last Updated January 11, 2001)

Up   Previous   Next