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
 Grip Points not showing after copying background
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

nwscomps

185 Posts

Posted - Oct 22 2018 :  05:15:04  Show Profile  Reply
I copy the background layer with:

fCopyIEImgLayer := TIEImageLayer.Create(nil,0,0);
fCopyIEImgLayer.Assign(fCurrentIEView.CurrentLayer); //in this case background
fCopyIEImgLayer.Locked := false;

then paste the layer with:

if assigned(fCopyIEImgLayer) then
begin
fCurrentIEView.LayersCurrent := fCurrentIEView.LayersAdd(ielkImage);
fCurrentIEView.CurrentLayer.Assign(fCopyIEImgLayer);
end

Then set mouse interaction to:
[miMoveLayers, miResizeLayers]

At this point I cannot see the grip points to resize the layer. I can move the layer but I cannot see where to click to resize it.

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html

xequte

38185 Posts

Posted - Oct 22 2018 :  18:18:10  Show Profile  Reply
Hi Francesco

By default, the background layer is locked, so ensure you set:

fCurrentIEView.CurrentLayer.Locked := False;
fCurrentIEView.CurrentLayer.Selectable:= True;


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

nwscomps

185 Posts

Posted - Oct 23 2018 :  03:30:29  Show Profile  Reply
Hi Nigel,
I had already locked = false. Even after setting Selectable = true, the grip points are not showing. This happens only for the background.

Francesco Savastano
Add-ons for the ImageEn Library
web: http://www.fssoft.it/delphicomps.html
Go to Top of Page

xequte

38185 Posts

Posted - Oct 24 2018 :  15:26:34  Show Profile  Reply
Hi

As it is the background layer, you will also need to set VisibleBox to true.

procedure Tfmain.Button9Click(Sender: TObject);
var
  fCopyIEImgLayer: TIELayer;
begin
  fCopyIEImgLayer := TIEImageLayer.Create(nil,0,0);
  fCopyIEImgLayer.Assign(ImageEnView1.Layers[0]); //in this case background
  fCopyIEImgLayer.Locked := false;
  fCopyIEImgLayer.Selectable := True;
  fCopyIEImgLayer.VisibleBox := True;

  if assigned(fCopyIEImgLayer) then
    ImageEnView1.LayersCurrent := ImageEnView1.LayersAdd(fCopyIEImgLayer);

  ImageEnView1.MouseInteract := [miMoveLayers, miResizeLayers];
end;


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