Table of Contents

TEXTRECT Service

Description

Determines the size of the rectangle with a text.

Note: This is a Windows only function.

Parameters

ParameterDescription
<object>Any object or null
<value>An @FM-delimited array:

Value - Description
<1> - Any text lines (delimited by \0D0A\)
<2> - Refer to SDK DrawText() (Format parameter)
<3> - Width of rectangle for DT_WORDBREAK flag set (only if object doesn't exist)
<4> - LOGFONT structure (SVM-delimited) (only if object doesn't exist)\\

Returns

An @FM delimited array of information:

FieldDescription
<1>Width of rectangle to fit the text.
<2>Height of rectangle to fit the text.

Remarks

Uses DrawText function. For more information, refer to the Windows SDK manual.

See Also

BEEP Service

DESTROY Service

REMOVEDIR Service

CHOOSECOLOR Service

FLUSH Service

RENAMEDIR Service

CHOOSEDIR Service

GET_EVENT Service

RENAMEFILE Service

CHOOSEFILE Service

GETLOGICALDRIVES Service

RUNHELP Service

CHOOSEFONT Service

MAKEDIR Service

RUNWIN Service

COPYFILE Service

OBJECTID Service

TEXTRECT Service

CREATE Service

OBJECTLIST Service

WINCOUNT Service

CURSOR Service

PRINTSETUP Service

Utility function