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
 Layers question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

chunhua

China
5 Posts

Posted - Jan 11 2016 :  19:59:12  Show Profile  Reply
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

w2m

USA
1990 Posts

Posted - Jan 12 2016 :  10:02:22  Show Profile  Reply
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
Go to Top of Page

xequte

39053 Posts

Posted - Jan 13 2016 :  13:56:25  Show Profile  Reply
Hi

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


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