Disable Snapshot tool on Loupe Tool and Pan and Zoom Tool

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Disable Snapshot tool on Loupe Tool and Pan and Zoom Tool

Post by milonass »

On the 'Loupe Tool' and 'Pan and Zoom Tool' there is a second possibility to create snapshots even if

'Commands["SnapshotTool"].State' is 'Offline' .

Is there a possibility to disable these snapshot tools also or do we have to disable the whole functions?

Thank you and regards,
Thomas
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by Vasyl-Tracker Dev Team »

Hi Thomas.

Please use the following code:

Code: Select all

pdfCtl.SetProperty("Commands["#33412"].State", "Offline", 0);
HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by milonass »

Hi Vasyl,

thank you for your reply. Unfortunately I get a crash when setting this command. Is the number ["#33412"] correct?
Furthermore I would like to know how to disable the "Online Search" button.

Thank you.

Thomas
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by Tracker Supp-Stefan »

Hi Thomas,

33412 is "Make Snapshot":
https://help.pdf-xchange.com/DEV/de ... mmand_list
So yes it seems the ID is the correct one.

Please also take a look here:
https://help.pdf-xchange.com/DEV/de ... xactphrase
Seems like the

Code: Select all

SetProperty("Commands[" + i + "].State", DataIn("Offline"), 0);
is the correct syntax, so can you please check which build of the Viewer SDK are you using?

Regards,
Stefan
milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by milonass »

Hi Vasyl,

im am using the Viewer not the Editor. And in the Viewer command list this command is not listed.

Thanks.
Thomas
milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by milonass »

ok, I found it: 'Commands[#33412].State' works, not 'Commands["#33412"].State'.

Thanks.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too

Post by Tracker Supp-Stefan »

Hello milonass,

The above links were for the Viewer SDK, but I see you figured it out!

Cheers,
Stefan
Post Reply