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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnVect - Adjust Width of Selected Text Obj
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

sparkz

United Kingdom
8 Posts

Posted - Mar 09 2016 :  14:09:00  Show Profile  Reply
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

xequte

39115 Posts

Posted - Mar 09 2016 :  17:04:00  Show Profile  Reply
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
Go to Top of Page

sparkz

United Kingdom
8 Posts

Posted - Mar 10 2016 :  14:40:12  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: