Carbon


TXNIsSelectionEmpty

Header: MacTextEditor.h Carbon status: Supported

Checks the current selection to see if it is empty.

Boolean TXNIsSelectionEmpty (
    TXNObject iTXNObject
);
Parameter descriptions
iTXNObject

A variable of type TXNObject. Pass the text object for the current text area.

function result

A Boolean value; true if the current selection is empty.

DISCUSSION

You can use this to determine if Cut, Copy, and Clear items should be enabled in the Edit menu.

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)