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
 Questions about creating a Text Layer

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 - Oct 23 2022 : 11:50:31
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.



3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 24 2022 : 22:39:51
Hi Peter

Have you set:

ImageEnView1.PopUpMenus := [ievLayerEditing,ievLayerSelection];

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

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Oct 24 2022 : 02:19:24
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.

xequte Posted - Oct 23 2022 : 18:25:09
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