Tools.Active.ZoomIn

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

relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Tools.Active.ZoomIn

Post by relapse »

Hi, I've found out that executing the command

Code: Select all

SetProperty("Tools.Active", "ZoomIn");
you get not only the tool in the form of loupe mouse pointer, but the document is also zoomed in. If you execute its counterpart

Code: Select all

SetProperty("Tools.Active", "ZoomOut");
you get only the tool. Is it a bug?


Thanks
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Tools.Active.ZoomIn

Post by Vasyl - PDF-XChange »

Hi, relapse.

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.
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Tools.Active.ZoomIn

Post by relapse »

This is my click event handler:

Code: Select all

        private void btnLoupe_Click(object sender, RoutedEventArgs e)
        {
            pdfViewer.SetProperty("Tools.Active", "ZoomIn");
        }
There are no commands for changing zoom such as:

Code: Select all

                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.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Tools.Active.ZoomIn

Post by Stefan - PDF-XChange »

Hello relapse,

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.

Best,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Tools.Active.ZoomIn

Post by Vasyl - PDF-XChange »

Hi, relapse.

Can you send us the simple example program reproducing?

Please ensure all license info is removed.

Thanks
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.
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Tools.Active.ZoomIn

Post by relapse »

I'll do it! I need some time because I have to complete other issues at the moment.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Tools.Active.ZoomIn

Post by Stefan - PDF-XChange »

Sure relapse,

We are here so when you have the time - do send the project and we will take a look.

Best,
Stefan
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Tools.Active.ZoomIn

Post by relapse »

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. :oops:

8) I hope it will be my last "bug" of such stupidity. 8)
Last edited by relapse on Mon Mar 05, 2012 10:43 am, edited 1 time in total.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Tools.Active.ZoomIn

Post by Stefan - PDF-XChange »

:)