PDF-XChange Editor SDK for Developers
Moderators: TrackerSupp-Daniel , Tracker Support , Paul - Tracker Supp , Vasyl-Tracker Dev Team , Chris - Tracker Supp , Sean - Tracker , Ivan - Tracker Software , Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the
IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
lidds
User
Posts: 510 Joined: Sat May 16, 2009 1:55 pm
Post
by lidds » Fri Jun 16, 2017 11:02 am
I am trying to display the menubar using the below code, but this does not seem to work??
Code: Select all
Me.docPreview.Inst.ShowCmdBar("cmdbar.menubar", True)
Me.docPreview.Inst.ShowCmdBar("cmdbar.commenting", True)
Thanks
Simon
Sasha - Tracker Dev Team
User
Posts: 5522 Joined: Fri Nov 21, 2014 8:27 am
Contact:
Post
by Sasha - Tracker Dev Team » Fri Jun 16, 2017 11:13 am
Hello lidds,
Have you seen the FullDemo behavior? First you will have to Show Command Panes and then use the code that you have provided.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510 Joined: Sat May 16, 2009 1:55 pm
Post
by lidds » Fri Jun 16, 2017 11:25 am
Alex,
I have already done this, sorry I did not post complete code:
Code: Select all
Me.docPreview.VisibleCmdPanes = CUInt(True)
Me.docPreview.Inst.ShowCmdBar("cmdbar.menubar", True)
Me.docPreview.Inst.ShowCmdBar("cmdbar.commenting", True)
Me.docPreview.Inst.ExecUICmd2(3599)
Me.docPreview.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_CustomUI)
I've also tried using the ExecUICmd2 command as well and this does not seem to be working either (3599 = Thumbnail pane (as I'm sure you know))
Yes I have seen the FullDemo project and I am using that a lot to try and learn PDF X-Change
Thanks
Simon
Sasha - Tracker Dev Team
User
Posts: 5522 Joined: Fri Nov 21, 2014 8:27 am
Contact:
Post
by Sasha - Tracker Dev Team » Fri Jun 16, 2017 11:31 am
Hello Simon,
Me.docPreview.Inst.ExecUICmd2(3599)
Please
do not use the numeric ID's directly - they will change from build to build.
To show the Panes use pdfCtl.ShowPane method.
Code: Select all
Me.docPreview.VisibleCmdPanes = CUInt(True)
This is also wrong - please check the FullDemo's ckShowCmdPanes_CheckedChanged method.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510 Joined: Sat May 16, 2009 1:55 pm
Post
by lidds » Fri Jun 16, 2017 12:40 pm
Alex,
I have looked into this and am now using the following code, but this is still not showing the menubar etc.
Code: Select all
Me.docPreview.VisibleCmdPanes = CUInt(PDFXEdit.PXV_VisibleCmdPanes.PXV_VisibleCmdPanes_All)
Me.docPreview.Inst.ShowCmdBar("cmdbar.menubar", True)
Me.docPreview.Inst.ShowCmdBar("cmdbar.commenting", True)
Me.docPreview.Inst.FireAppPrefsChanged(PDFXEdit.PXV_AppPrefsChanges.PXV_AppPrefsChange_CustomUI)
Also if I am not meant to use the ID's then how do I show them, I have tried the following but this is not working either. At a bit of a loss with this.
Code: Select all
Me.docPreview.Inst.ExecUICmd("cmd.view.pageThumbnails")
Thanks for your patience and help
Simon
Sasha - Tracker Dev Team
User
Posts: 5522 Joined: Fri Nov 21, 2014 8:27 am
Contact:
Post
by Sasha - Tracker Dev Team » Fri Jun 16, 2017 1:34 pm
Hello Simon,
It would be better if you send me a sample project (without your key).
As for the thumbnails view:
To show the Panes use pdfCtl.ShowPane method.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ