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
 Crop when press RETURN.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Dany

67 Posts

Posted - Jul 24 2018 :  09:38:09  Show Profile  Reply
Hi;

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.

How can I know?

Than you!

w2m

USA
1990 Posts

Posted - Jul 24 2018 :  09:47:41  Show Profile  Reply
Please clearly state what you are trying to accomplish. I do not understand your problem.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

Dany

67 Posts

Posted - Jul 24 2018 :  10:52:21  Show Profile  Reply
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.

Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 24 2018 :  11:16:09  Show Profile  Reply
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 Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

Dany

67 Posts

Posted - Jul 24 2018 :  12:05:46  Show Profile  Reply
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.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 24 2018 :  12:31:04  Show Profile  Reply
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.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

39053 Posts

Posted - Jul 24 2018 :  21:51:50  Show Profile  Reply
In 8.0.2 we will have an OnUserInteraction event. You can email me to test it.



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