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
 Crop when press RETURN.

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
Dany Posted - Jul 24 2018 : 09:38:09
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!

6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 24 2018 : 21:51:50
In 8.0.2 we will have an OnUserInteraction event. You can email me to test it.



Nigel
Xequte Software
www.imageen.com
w2m Posted - Jul 24 2018 : 12:31:04
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
Dany Posted - Jul 24 2018 : 12:05:46
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.
w2m Posted - Jul 24 2018 : 11:16:09
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
Dany Posted - Jul 24 2018 : 10:52:21
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.

w2m Posted - Jul 24 2018 : 09:47:41
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