ImageEn, unit ievect




procedure StretchTextRect(hobj: integer);


Stretches text rectangle to the size required to display the whole text.
Note: borders (see ObjPenWidth) can hide some text. To avoid this disable ZoomObjectsWidth.
This method works only with horizontal text and only for iekTEXT objects.

IEV_PREVIOUS_INSERTED_OBJECT can be specified for hobj to refer to the object that was last inserted.

Transition Information

If you are transitioning your code to TImageEnView Layers, instead of StretchTextRect, use: TIETextLayer.SizeToText

TIETextLayer( ImageEnView1.CurrentLayer ).SizeToText();

TIETextLayer( ImageEnView1.CurrentLayer ).AutoSize := True;