I have to find a way to know when ImageEnView crop the image; I didn't found a specific event; also I tried to use normal keypress / keydown / keyup events to catch RETURN for doing Enact by myself, without success. OnImageChange event is not enough for my case, as it does not say it was for a crop.
I have a button for START cropping and another for APPLY crop and another for CANCEL cropping. I have to enable/disable each one regarding current status.
Cropping is almost instant so I do not think you can cancel a crop with a button click because there would not be sufficient time to even enable the Cancel button. As far as disabling the Apply button, you could enable it in the Start button event and disable the Apply button at the end of the Apply button click event. You could then enable/disable the Apply button when the Start button is toggled up or down.
Will that work for you?
Also look at the Crop Tool demo as that shows how to enable/disable some buttons.
I tried to cancel a crop by pressing the ESC key immediately after I pressed the Apply Crop button. The cancel did not cancel the crop. Cancel only removes the crop tool selection in the demo.
Bill ..... The library is providing methods for start/apply/cancel crop operations, and I have to use those methods. I am doing exact what you say and pressing my bottons are doing all perfect. The problem is when the user press ENTER (my buttons ingnores that event so I can't do what you say). If you can't give an event, at least provide a way to avoid the ENTER for applying the crop, so I can do it by myself in a consistent way. Same case for ESCAPE. I have to know when cropt is started/applied/cancelled, so I can update buttons status.
I have provided you my understanding of your problem to the best of my ability. I am not the developer of ImageEn. Contact the developer if you wish an event to be added to the CropTool.