Carbon


Frame Option Masks

Header: MacTextEditor.h

Specifies features that apply to a text object.

enum {
    kTXNDrawGrowIconMask = 1,
    kTXNShowWindowMask = 2,
    kTXNWantHScrollBarMask = 4,
    kTXNWantVScrollBarMask = 8,
    kTXNNoTSMEverMask = 16,
    kTXNReadOnlyMask = 32,
    kTXNNoKeyboardSyncMask = 64,
    kTXNNoSelectionMask = 128,
    kTXNSaveStylesAsSTYLResourceMask = 256,
    kOutputTextInUnicodeEncodingMask = 512,
    kTXNDoNotInstallDragProcsMask = 1024,
    kTXNAlwaysWrapAtViewEdgeMask = 2048
};

Constant descriptions

kTXNDrawGrowIconMask

Draws a grow icon at the bottom right corner of the frame.

kTXNShowWindowMask

Displays the window before returning from TXNNewObject. If you specify this option, you no longer need to call the ShowWindow function from the Window Manager; MLTE will do this for you.

kTXNWantHScrollBarMask

frame.

kTXNWantVScrollBarMask

Includes and manages a vertical scroll bar inside the frame.

kTXNNoTSMEverMask

allowed when the text being used is Unicode since you need TSM to input Unicode characters.

kTXNReadOnlyMask

Sets the data in the text object to read-only.

kTXNNoKeyboardSyncMask

Does not synchronize the keyboard with the font.

kTXNNoSelectionMask

Does not display the insertion point.

kTXNSaveStylesAsSTYLResourceMask

Saves text style information as ‘styl’ resources; use for SimpleText compatibility. If you use 'styl' resources to save style info, your documents can have as many styles as you’d like. However tabs are not saved. If you don’t use this mask, plain text files are saved as 'MPSR' resources, and only the first style in the document is saved. (Your application is expected to apply all style changes to the entire document.) If you save files with an ‘MPSR’ resource, their output is similar to those output by CW IDE, BBEdit, and MPW.

kOutputTextInUnicodeEncodingMask

Saves plain text save as Unicode.

kTXNDoNotInstallDragProcsMask

Indicates you want to call the drag handlers for the drag events associated with this text object.

kTXNAlwaysWrapAtViewEdgeMask

Always wraps words at the edge of the text object’s view rectangle.


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