Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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;
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.