Carbon


SizeDialogItem

Header: Dialogs.h Carbon status: Supported

Sizes a dialog item.

OSErr SizeDialogItem (
    DialogRef inDialog, 
    SInt16 inItemNo, 
    SInt16 inWidth, 
    SInt16 inHeight
);
Parameter descriptions
inDialog

A pointer to the dialog box containing the item to be resized.

inItemNo

The position of the item in the dialog box’s item list resource; use FindDialogItem to determine this value.

inWidth

The new width (in pixels) of the dialog item’s control rectangle.

inHeight

The new height (in pixels) of the dialog item’s control rectangle.

function result

A result code.

DISCUSSION

The SizeDialogItem function resizes a dialog item to a specified size. If the dialog item is a control, the control rectangle and the dialog item rectangle (maintained by the Dialog Manager) are always the same.

VERSION NOTES

This function is available with Appearance Manager 1.0 and later.

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 6/30/2000)