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
 How to add second text line in in-place editor?

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
PeterPanino Posted - Sep 11 2020 : 16:17:54
In the Layer Properties dialog, to input a SECOND TEXT LINE in a text-layer, you can use CTRL+RETURN to add a second line:



Otherwise, by hitting just the RETURN key, the Layer Properties dialog would CLOSE.

Unfortunately, the CTRL+RETURN trick does not work when editing the text in a text layer in-place after double-clicking a text layer:



In this case, CTRL+RETURN does NOTHING and the RETURN key always closes the in-place editor!

So, how can I add a second line in the text-layer in-place editor?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 13 2020 : 23:28:16
Hi Peter

To support carriage returns in Text layers you need to do one of the following:

- Enable rich formatting for the layer, e.g.:

TIETextLayer( ImageEnView1.CurrentLayer ).EnableFormatting := True;


- Enable returns in plain text layers, by enabling the following define in ie.inc

{.$define AllowReturnsInTextLayers}



Nigel
Xequte Software
www.imageen.com