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
 How to capture the ielResized event

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
supersk Posted - Mar 05 2024 : 04:07:25
In the following function, I want to capture the ielResized event after the user changed the size of the line layer with the mouse.
void __fastcall TImageForm::ImgEnMainLayerNotifyEx(TObject *Sender, int layer, TIELayerEvent event){
if (event == ielResized) {
// update info

}
}
But I can't receive the ielResized event, after ielMovedPoint I only got ielEditedPoints.So how to capture the ielResized event?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 06 2024 : 19:34:38
Hi

Moved point is an ongoing change. ielEditedPoints is when the editing is completed.

If you want to force completion of the current editing, you would need to enact it.

var
  idx: Integer;
  lyrCreateTool: TIELayerCreateInteraction;
begin
  idx := ImageEnView1.UserInteractions.FindInstanceOf(TIELayerCreateInteraction);
  lyrCreateTool := ImageEnView1.UserInteractions[ idx ] as TIELayerCreateInteraction;
  lyrCreateTool.Enact();
end;



Nigel
Xequte Software
www.imageen.com
supersk Posted - Mar 05 2024 : 19:23:18
Thank you for your quick reply.Another question, how do I stop the mouse from moving point after receiving the event ielMovedPoint?
xequte Posted - Mar 05 2024 : 15:10:23
Hi

ielResized only occurs for MouseInteractLayers of mlResizeLayers.
For mlEditLayerPoints, completion of the action triggers ielEditedPoints.

Nigel
Xequte Software
www.imageen.com