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
Disable Snapshot tool on Loupe Tool and Pan and Zoom Tool
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
- 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
Hi Thomas.
Please use the following code:
HTH.
Please use the following code:
Code: Select all
pdfCtl.SetProperty("Commands["#33412"].State", "Offline", 0);
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.
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.
Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too
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
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
- 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
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 is the correct syntax, so can you please check which build of the Viewer SDK are you using?
Regards,
Stefan
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);
Regards,
Stefan
Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too
Hi Vasyl,
im am using the Viewer not the Editor. And in the Viewer command list this command is not listed.
Thanks.
Thomas
im am using the Viewer not the Editor. And in the Viewer command list this command is not listed.
Thanks.
Thomas
Re: Disable Snapshot tool on Loupe Tool and Pan and Zoom Too
ok, I found it: 'Commands[#33412].State' works, not 'Commands["#33412"].State'.
Thanks.
Thanks.
- 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
Hello milonass,
The above links were for the Viewer SDK, but I see you figured it out!
Cheers,
Stefan
The above links were for the Viewer SDK, but I see you figured it out!
Cheers,
Stefan