PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)
Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
We cannot reproduce this behavior. One thing - check your 'OnEvent' handler for events from our ActiveX.
May be you have intercepted events from our viewer and called another code..
Note: changing of 'Tools.Active' property produces special event OnEvent(type=PXCVA_OnPropertyChanged, name="Tools.Active", ...)
HTH
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.
object data;
pdfViewer.DoVerb(null, "ExecuteCommand", "ZoomViewIn", out data);
Nevertheless if I click on my loupe button first time, the document will be enlarged one defined step (+ 25%) instead of simple changing the mouse pointer.
P.S.: I've found no event interception in my code. I also deactivated capturing of mouse events in order to test, it doesn't help, the behavior remains.
I am also unable to reproduce your problem with the ZoomIn tool.
Tried
SetProperty("Tools.Active", "ZoomIn");
- which works, and then tried it with specifying the flags parameter:
SetProperty("Tools.Active", "ZoomIn", 0);
And it still worked as expected and the result was just selecting the tool. No zooming in of the current active document.
I've found it! Sorry, my other spin: I placed another button (with same icon - my buttons have icons) over the right one and set the right one as collapsed. The false button called ZoomIn function and not the loupe tool. I've noticed it as I've set a new icon for the button and haven't seen the change. I'm very sorry.
I hope it will be my last "bug" of such stupidity.
Last edited by relapse on Mon Mar 05, 2012 10:43 am, edited 1 time in total.