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
 Text layer does not accept New Line....

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
yogiyang Posted - Oct 18 2021 : 09:36:01
Hello,

I am trying to use the text layer. But in my case I want to assign text to text layer when it is created as follows:

ieViewMain.LayersAdd(ielkText, Rect(50, 50, 300, 350));

  with TIETextLayer(ieViewMain.CurrentLayer) do
  begin
    WordWrap := True;
    Alignment := iejLeft;
    AutoSize := True;
    text := 'Lorem Ipsum' + #13 + 'Lorem Ipsum';
    EnableFormatting := False;
    TextControl(Sender);
  end;


Here logically speaking the text should come in two lines.

I am saying this because when I assign this same line to a Label.caption it comes as expected.

How to solve this problem?

TIA


Yogi Yang
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 18 2021 : 16:27:15
Hi Yogi

Please use #13#10 to break lines. Also ensure you call Update() after setting layer properties.

Nigel
Xequte Software
www.imageen.com