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 selectable only after clicking outside background area
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

103 Posts

Posted - Jun 17 2022 :  08:25:01  Show Profile  Reply
Hi Nigel,

if e.g. MouseInteractLayers := [mlMoveLayers, mlResizeLayers], after creating a layer(1) the bordergrips correctly appear and the layer is movable and resizable. Clicking then outside layer(1) on the background area (layer 0), the bordergrips of layer(1) correctly disappear.

Now, clicking again on layer(1), it won't be selected; no bordergrips, it's not movable and not resizable. Only after clicking outside the background area, layer(1) becomes again selectable, movable, resizable, with the brodergrips visible.

Is there a way to directly reselect layer(1) after clicking on the background area (layer 0)?

Test code:

procedure TFormTest.FormShow(Sender: TObject);
begin
  ImageEnView1.IO.LoadFromFileJpeg('...\IMG.jpg');
end;

procedure TFormTest.Button1Click(Sender: TObject);
begin
  with ImageEnView1 do
    begin
      LayersAdd( 'PAID', 96, clRed, 'Arial Black', [fsBold] );
      CurrentLayer.PosX := IELayer_Pos_HCenter;
      CurrentLayer.PosY := IELayer_Pos_VCenter;
    end;
  ImageEnView1.Update();
end;

Al

xequte

7079 Posts

Posted - Jun 17 2022 :  17:30:54  Show Profile  Reply
Hi Al

There is a logical flaw in our selection handling there. Please email me for updated source code, or make the background layer unselectable:

ImageEnView1.Layers[0].Selectable := False;

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

aleatprog

103 Posts

Posted - Jun 18 2022 :  04:42:47  Show Profile  Reply
Works perfectly. Thank you, Nigel.

Al
Go to Top of Page

email_toan

USA
19 Posts

Posted - Jul 28 2022 :  19:59:44  Show Profile  Reply
Yeah, I'm having the same problem even after using
ImageEnView1.Layers[0].Selectable := False;

I notice once I click on the background layer even Selectedable:=False, I can't select any other layer.



tn

Go to Top of Page

xequte

7079 Posts

Posted - Jul 28 2022 :  23:14:40  Show Profile  Reply
Hi

Yes, I believe that's the same bug caused by overlapping layers. It will be fixed in our August release, but you might want to can email me for the pre-release to test it,

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