Set the width of MText

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
gezaborbely
Posts: 2
Joined: 19 Jun 2012, 12:11

Set the width of MText

Post by gezaborbely » 19 Jun 2012, 12:19

Hello

i am drawing an mtext on an empty image. if i see that the resulting image is wider than the maximum width that i need,
i have to recreate the mtext with a different width.
I noticed that there is a rectwidth property, but it doesn't really help me.
(in autocad i can set the rectwidth and the text is automatically divided in multiple lines)
What would be the solution?
Thanks!

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Set the width of MText

Post by support » 19 Jun 2012, 14:44

Hello.
Full set of entities on a layout defines its extents. If a drawing contains single MText entity on model then extents correspond to MText's borders (Box property). Please note, TsgCADImage.IsWithoutBorder and TsgCADImage.BorderSize can be used to set the border value for visualization.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply