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
 Text layer does not accept New Line....
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
703 Posts

Posted - Oct 18 2021 :  09:36:01  Show Profile  Reply
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

xequte

6525 Posts

Posted - Oct 18 2021 :  16:27:15  Show Profile  Reply
Hi Yogi

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

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