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
 Disable all but the corner grips of the selected layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
158 Posts

Posted - Jul 15 2022 :  18:08:32  Show Profile  Reply
Hey Nigel,

is it possible to remove the top, bottom, left and right grips in the layers of a TImageEnView ? Want to retain the 4 corner grips as they are.

Thanks in advance,

John

xequte

38608 Posts

Posted - Jul 17 2022 :  00:36:07  Show Profile  Reply
Hi John

You should custom draw the grips in the event:

https://www.imageen.com/help/TImageEnView.OnDrawLayerGrip.html

It should be something like:

// Only draw corner grips
procedure Tfmain.ImageEnView1DrawLayerGrip(Sender: TObject;
  ABitmap: TBitmap; layer, grip: Integer; rect: TRect);
begin
  if grip in [0,1,2,3] then
  begin
    iec := TIECanvas.Create( ABitmap.Canvas );
    IEDrawGrip( iec, rect,  ImageEnView1.GetLayersGripStyle() );
    iec.Free;
  end;
end;


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