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.