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
 Layers question

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
chunhua Posted - Jan 11 2016 : 19:59:12
hi

(1)How to select and move layer by mouse left click ,same select and move obj.
(2)when i move an object in layer,very slowly and tired.
(3)How to keep object edge in layer when drag objects in layer.






xxx
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 13 2016 : 13:56:25
Hi

Also, please advise how to reproduce the slowness you are seeing.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Jan 12 2016 : 10:02:22
1. Select Layers or Objects

Select Objects

  ImageEnVect1.MouseInteract := [];
  ImageEnVect1.MouseInteractVt := [miObjectSelect];

Select Layers


  ImageEnVect1.MouseInteract := [miMoveLayers, miResizeLayers];
  ImageEnVect1.MouseInteractVt := [];
  ImageEnVect1.UnSelAllObjects;



2. Moving object
Can not fix this... the speed depends on the size of the bitmap in the layer and the speed of your graphics card and processor.


3. Keep Object in Layer
ImageEnVect1.ObjAnchorToLayers := True;


Sample Code

procedure TForm1.FormCreate(Sender: TObject);
begin
  ImageEnVect1.IO.Params.BMP_HandleTransparency := True;
  ImageEnVect1.LayersSync := False;
  ImageEnVect1.ObjAnchorToLayers := True;
  ImageEnVect1.ObjBitmapHandleTransparencyOnSel := True;
  ImageEnVect1.ObjBoxInnerSelectable := True;
  ImageEnVect1.MaxSelectionDistance := 15;
  ImageEnVect1.LayersDrawBox := True;
  ImageEnVect1.SelectionOptions := ImageEnVect1.SelectionOptions +
    [iesoSelectTranspLayers];
end;

procedure TForm1.Layers1Click(Sender: TObject);
begin
  ImageEnVect1.MouseInteract := [miMoveLayers, miResizeLayers];
  ImageEnVect1.MouseInteractVt := [];
  ImageEnVect1.UnSelAllObjects;
end;

procedure TForm1.Objects1Click(Sender: TObject);
begin
  ImageEnVect1.MouseInteract := [];
  ImageEnVect1.MouseInteractVt := [miObjectSelect];
end;


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development