Hello! A new question connected with my previous one about notifications.
In my program I use a square annotation in order to select an area to be cropped. I can alter the size of that square with mouse. Now I'd like to show the current size of that square, namely the output should refresh itself as soon as the size is altered. I've tried to code it, but the size output is refreshed only when the square annotation loses its focus. Does it mean the event is fired not before the annotation loses its focus?
Thanks for your reply!
P.S.: I've changed my code so that refreshing is executed on any mouse event. Now it's got better: the current size is refreshed if I loose the mouse button after altering the annotation size.
Dynamical refreshing of a selection size
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 167
- Joined: Wed Jan 18, 2012 11:10 am
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Dynamical refreshing of a selection size
Hi, relapse.
"when the square annotation loses its focus" - may be you mean "when the square annotation loses its mouse capture" or in other word - "when end-user releases the mouse left-button" ?
In this case you cannot obtain new annotation's size/position during changing it by end-user, only when user changed(resized/moved) it completely...
With the new version of our SDK you will be able to simple add your own tool for customized pages cropping...
Best
Regards.
Code: Select all
I've tried to code it, but the size output is refreshed only when the square annotation loses its focus.
In this case you cannot obtain new annotation's size/position during changing it by end-user, only when user changed(resized/moved) it completely...
With the new version of our SDK you will be able to simple add your own tool for customized pages cropping...
Best
Regards.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.