Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
bcardi  
#1 Posted : Sunday, August 26, 2007 7:48:35 AM(UTC)
bcardi

Rank: Member

Groups: Member
Joined: 8/25/2007(UTC)
Posts: 7

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).
Alex Kon  
#2 Posted : Sunday, August 26, 2007 5:25:38 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
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:
Code:
textObj.SupportedActions[Aurigma.GraphicsMill.WinControls.VObjectAction.Resize].Enabled = false;
textObj.SupportedActions[Aurigma.GraphicsMill.WinControls.VObjectAction.ChangeTextArea].Enabled = true;

Edited by user Tuesday, January 1, 2008 4:39:40 AM(UTC)  | Reason: Not specified

bcardi  
#3 Posted : Sunday, August 26, 2007 10:52:21 PM(UTC)
bcardi

Rank: Member

Groups: Member
Joined: 8/25/2007(UTC)
Posts: 7

Thanks, Alex. That was exactly what I needed.

- Bob
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.