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
 Stretch Ability for TextLayer

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
john_siggy@yahoo.com Posted - Jul 13 2019 : 12:00:06
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
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 15 2019 : 19:37:47
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
john_siggy@yahoo.com Posted - Jul 15 2019 : 12:19:44
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
john_siggy@yahoo.com Posted - Jul 15 2019 : 12:06:45
No luck with that. Tried it in the All Layers Demo and in my own program. Only WordWrap Works.

Cheers,
aleatprog Posted - Jul 13 2019 : 19:54:39
Hi John, try the following:

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

Al