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
 Questions about creating a Text Layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Oct 23 2022 :  11:50:31  Show Profile  Reply
I create a Text Layer with this code:

procedure TformMain.mTextLayerPlainTextClick(Sender: TObject);
begin
  ImageEnViewPixelEditor.LayersAdd(ielkText);
  with TIETextLayer(ImageEnViewPixelEditor.CurrentLayer) do
  begin
    WordWrap := True;
    BorderColor := clBlack;
    BorderWidth := 1;
    FillColor := clWhite;
    ActivateEditor;
  end;
  ImageEnViewPixelEditor.Update();
end;


1. However, the text is not word-wrapped while typing the text. I am not seeing the whole text while typing is like driving a car blindfolded.

2. After entering the text, when I double-click the text to edit, it's the same: I cannot see the whole text, e.g., edit a specific word.

3. Is there a feature to make the Text Layer automatically adapt its size to the amount of text it contains? Update: AutoSize does it. It would be nice if AutoSize would also work while typing.

4. Right-clicking this Text Layer doesn't show me the Layer's context menu but the context menu of the Background Image. So how can I show the Layer's context menu when right-clicking the Layer?

5. When creating a Text Layer with this code:

procedure TformMain.mTextLayerPlainTextClick(Sender: TObject);
begin
  ImageEnViewPixelEditor.LayersAdd(ielkText);
  with TIETextLayer(ImageEnViewPixelEditor.CurrentLayer) do
  begin
    BorderColor := clBlack;
    BorderWidth := 1;
    FillColor := clInfoBk;
    AutoSize := True;
    Height := 40;
    Layout := ielCenter;
    Alignment := iejCenter;
    ActivateEditor;
  end;
  ImageEnViewPixelEditor.Update();
end;


...the text is typed top-left and not mid-center. Only when pressing Enter the text is formatted mid-center. Is it possible TYPING it mid-center? I think today's computers are fast enough.

When I try to rotate the Layer it gets deselected.



xequte

38610 Posts

Posted - Oct 23 2022 :  18:25:09  Show Profile  Reply
Hi Peter

1/2. WordWrap support is on the to-do list

3. If AutoSize is enabled, then the text should get wider automatically (but not taller). This will be improved when we do the WordWrap work

4. I cannot reproduce that. Can you give me more info?>

5. The editor always shows text aligned to the top-left. We'll reconsider this when we do the WordWrap work

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

933 Posts

Posted - Oct 24 2022 :  02:19:24  Show Profile  Reply
Hi Nigel

Thank you for your excellent support!

Here is a screenshot from where I right-clicked the created Text Layer:



This is the context menu of the Image background.

------------------------

This is the correct context menu from the Layer List:



I need this when I right-click the floating Text Layer in the image.

Go to Top of Page

xequte

38610 Posts

Posted - Oct 24 2022 :  22:39:51  Show Profile  Reply
Hi Peter

Have you set:

ImageEnView1.PopUpMenus := [ievLayerEditing,ievLayerSelection];

https://www.imageen.com/help/TImageEnView.PopUpMenus.html

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