ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnVect - Adjust Width of Selected Text Obj

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
sparkz Posted - Mar 09 2016 : 14:09:00
I want to control the height of an selected text object (just 1). I use font height of 0 for auto sizing. The problem is that it really needs the width to be adjusted for the new height afterwards. In a similar way when you end an edit.

I think I can work out how to do it via a helper (having looked at the RemoveTextEdit function) but is there a simpler way of doing this?

Thanks
2   L A T E S T    R E P L I E S    (Newest First)
sparkz Posted - Mar 10 2016 : 14:40:12
Thanks, I did figure out what the problem was in the end.

If I use the auto font sizing (height=0) it doesn't work but if I set the height myself it's fine. I'm setting it to the same as the object height which seems ok.
xequte Posted - Mar 09 2016 : 17:04:00
Please see:

http://www.imageen.com/help/TImageEnVect.StretchTextRect.html
http://www.imageen.com/help/TImageEnVect.ObjTextAutoSize.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com