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
 Disable all but the corner grips of the selected layer

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
john_siggy@yahoo.com Posted - Jul 15 2022 : 18:08:32
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 17 2022 : 00:36:07
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