This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Controlling size of text when area is resized

Is there a way to fix the size of text in the TextVObject control when it is resized? I want the user to be able to resize the control (so they can add more text), but have the text size remain fixed. I do not want the text to enlarge when the control is made bigger (or shrink when the control is made smaller).
Hello,

Yes, it is possible to implement. You should disable ResizeVObjectAction of the text object and enable TextVObject.ChangeTextAreaAction. Here is small code snippet which illustrates this:
textObj.SupportedActions[Aurigma.GraphicsMill.WinControls.VObjectAction.Resize].Enabled = false;
textObj.SupportedActions[Aurigma.GraphicsMill.WinControls.VObjectAction.ChangeTextArea].Enabled = true;
Thanks, Alex. That was exactly what I needed.

- Bob