Carbon


TEFeatureFlag

Header: TextEdit.h Carbon status: Not Recommended

Turns a specified feature on or off or returns the current status of that feature. Features supported are automatic scrolling, text buffering, outline highlighting, inline input, and text services.

SInt16 TEFeatureFlag (
    SInt16 feature, 
    SInt16 action, 
    TEHandle hTE
);
Parameter descriptions
feature

The feature for which the action is to be performed. See “Text Feature Constants” for a description of the available values.

action

A selector stipulating that the feature, specified by the feature parameter, is to be turned on or off, or that the current status of the feature is to be returned. See “Text Feature Action Constants” for a description of the available values.

hTE

A handle to the edit structure for which the action should be performed.

function result

The status of the specified feature (if the selector is set to teBitTest).

DISCUSSION

You can use the TEFeatureFlag function to check the status of additional TextEdit features—automatic scrolling, outline highlighting, and text buffering—and to enable or disable the feature. You can also use this function to disable inline input in a particular edit structure and to enable several features that have been provided so that inline input works correctly with TextEdit.

AVAILABILITY

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


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)