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
 Layer dragging
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

913 Posts

Posted - Feb 28 2024 :  15:16:35  Show Profile  Reply
I am trying to insert consecutive numbers to my screenshots:

procedure TformPreview.mInsertNumberClick(Sender: TObject);
begin
  // Append a Number text layer:
  ImageEnViewPreview.LayersAdd(ielkText);
  with TIETextLayer(ImageEnViewPreview.CurrentLayer) do
  begin
    Text := '1';
    BorderWidth := 0;
    FillColor := clRed;
    Font.Size := 16;
    Font.Color := clWhite;
    Alignment := iejCenter;
    Layout := ielCenter;
    BorderShape := iesEllipse;
    SoftShadow.Enabled := True;
    Width  := 50;
    Height := 50;
    AspectRatioLocked := True;
  end;
end;




However, these layers can be dragged only at their edges - which many users find difficult to handle!

How can these layers made to be dragged on the entire shape?

PeterPanino

913 Posts

Posted - Feb 29 2024 :  11:00:27  Show Profile  Reply
I have now discovered that when I include [mlEditLayerPoints], I can drag text and rectangle layers not only on their edge but also anywhere on the layer!

Is this a side effect?
Go to Top of Page

xequte

38448 Posts

Posted - Feb 29 2024 :  14:11:21  Show Profile  Reply
Hi Peter

Have you included mlMoveLayers?

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

PeterPanino

913 Posts

Posted - Mar 01 2024 :  02:45:09  Show Profile  Reply
Hi Nigel

Yes, mlMoveLayers is included as well.
Go to Top of Page

xequte

38448 Posts

Posted - Mar 02 2024 :  20:27:01  Show Profile  Reply
Hi Peter

Sorry, you also need to ensure that MouseInteractGeneral = []. Otherwise it will override mlMoveLayers.

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

xequte

38448 Posts

Posted - Mar 03 2024 :  16:00:44  Show Profile  Reply
Sorry, i should have mentioned that miSelect and mlMoveLayer can be used together, but in that configuration movement is possible only by clicking and dragging the edge of the current layer.

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