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
 Stretch Ability for TextLayer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
80 Posts

Posted - Jul 13 2019 :  12:00:06  Show Profile  Reply
Wondering if (by some slim chance) a Text Layer can be autosizable just like an Image Layer is. Font height would automatically adjust as you resized the selection rectangle using the grab handles.

Regards,


John

aleatprog

34 Posts

Posted - Jul 13 2019 :  19:54:39  Show Profile  Reply
Hi John, try the following:

TIETextLayer(ImageEnView1.CurrentLayer).WordWrap := False;
TIETextLayer(ImageEnView1.CurrentLayer).TextOverflow := ieoShrink;

Al
Go to Top of Page

john_siggy@yahoo.com

USA
80 Posts

Posted - Jul 15 2019 :  12:06:45  Show Profile  Reply
No luck with that. Tried it in the All Layers Demo and in my own program. Only WordWrap Works.

Cheers,
Go to Top of Page

john_siggy@yahoo.com

USA
80 Posts

Posted - Jul 15 2019 :  12:19:44  Show Profile  Reply
On closer inspection I found that setting TextOverflow to Shrink did indeed resize the font when the text selection rectangle is shrunk from it's original size. It does not work if the text is enlarged from original size.

Perhaps it would work if the text was 1st Maximized then set to the original size before layer is made visible ???

Thanks,


John
Go to Top of Page

xequte

4649 Posts

Posted - Jul 15 2019 :  19:37:47  Show Profile  Reply
Hi John

ieoShrink shrinks only. The maximum size will be the specified font size, so choose a large font size for your layer.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: