Carbon


TXNResizeFrame

Header: MacTextEditor.h Carbon status: Supported

Changes the size of the text object’s frame.

void TXNResizeFrame (
    TXNObject iTXNObject, 
    UInt32 iWidth, 
    UInt32 iHeight, 
    TXNFrameID iTXNFrameID
);
Parameter descriptions
iTXNObject

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

iWidth

An unsigned 32-bit integer. You use this to specify the new width of the frame in pixels.

iHeight

An unsigned 32-bit integer. You use this to specify the new height of the frame in pixels.

iTXNFrameID

A variable of type TXNFrameID that specifies the frame to resize. You get this ID when you call the TXNNewObject function.

DISCUSSION

The TXNResizeFrame function does not move the origin of the frame.

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)