show-hide panes

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

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.
charuvasudev
User
Posts: 16
Joined: Wed Feb 11, 2009 5:48 am

show-hide panes

Post by charuvasudev »

Hi,

I am not able to find IDs of panes that open from quick-tool bar like accessibilty check, accessibility report, links, order and article. In the following link these are not listed. Cannot find anything in fulldemo project.
https://sdkhelp.pdf-xchange.com/view/PX ... l_ShowPane

pls guide,

Rgds
charuvasudev
User
Posts: 16
Joined: Wed Feb 11, 2009 5:48 am

Re: show-hide panes

Post by charuvasudev »

hi,

Pls advise what IDs I should pass to pdfcontl.showpane(ID, False) method to hide-windows that open from 'Accessibility reports', 'Accessibility Checker','Order','Tags','3d model tree', 'Destination' buttons in quick tool bar on the left side of the control.. All the IDs are not listed in you documentation.

Rgds
User avatar
Sean - PDF-XChange
Site Admin
Posts: 774
Joined: Wed Sep 14, 2016 5:42 pm

Re: show-hide panes

Post by Sean - PDF-XChange »

Hi charuvasudev,

I have given the development team a nudge on this.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
User avatar
MishaH
User
Posts: 29
Joined: Wed Sep 11, 2024 1:43 pm

Re: show-hide panes

Post by MishaH »

Hi charuvasudev,

Here is the list of pane IDs you requested:
Title - ID
"Links" - linksView
"Accessibility Report" - accReportView
"Accessibility Checker" - accCheckerView
"Order" - orderView
"Tags" - tagsView
"3D Model Tree" - 3DModelTreeView
"Named Destinations" - pdfNamedDestsView

ShowPane requires a string as a parameter, or the identical method ShowPane2 to pass the ID as a number.

For example:

Code: Select all

// 1.
pdfCtl.ShowPane("pdfNamedDestsView", true, true);
// 2.
int nPaneID = pdfCtl.Inst.Str2ID("pdfNamedDestsView");
pdfCtl.ShowPane2(nPaneID, true, true);
Please let me know if this works for you.

Kind regards,
Misha
charuvasudev
User
Posts: 16
Joined: Wed Feb 11, 2009 5:48 am

Re: show-hide panes

Post by charuvasudev »

Hi,
screen1.png
Thank you for the IDs. I also need to hide the buttons at the bottom of the panel. Pls see the attached screenshot.
I am using pdf xchange at multiple places in my application. For each instance of control, I have to show/hide some panels and commandbars/toolsbars etc. Many years back I faced the issue where hiding/showing a command button at one place would hide/show it in other also. So your team gave us the following code- to hide attachmentview -
Dim atchview As PDFXEdit.IUIX_Obj = pdfctrl.Inst.MainFrm(i).View.DocViewsArea.ActiveDocView.Doc.ActiveView.AttachmentsView.Obj
Dim atch As PDFXEdit.IUIX_LayoutItem = pdfctrl.Inst.MainFrm(i).View.Panes.Layout.GetItem(atchview)
atch.Hide()
where i is the counter for the instance.
Using the above code I have hidden most of the views. But some are still showing. I have attached here a screenshot. I would like to hide 'Fields','3dModeltree', 'tags', 'order','Accessibilty Checker', 'Accessibilty Report'
pls guide.

Rgds
Charu
You do not have the required permissions to view the files attached to this post.
User avatar
MishaH
User
Posts: 29
Joined: Wed Sep 11, 2024 1:43 pm

Re: show-hide panes

Post by MishaH »

Hi charuvasudev,

Have you tried using the ShowPane methods?
To hide a pane, simply pass the opposite value as the second argument.

The code fragment you provided performs the same action; however, the ShowPane methods correctly handle both cases - when the pane is part of the MainView or the DocView.

Kind regards,
Misha
charuvasudev
User
Posts: 16
Joined: Wed Feb 11, 2009 5:48 am

Re: show-hide panes

Post by charuvasudev »

Hi,

Yes, I have hidden the above panes using showpane method. I was calling this method in New() function of the class and it was not hiding the pans. Today I tried calling 'Showpane' from load() function and panes are now hidden successfully.

Thank you for your help. You can consider the query resolved.

Rgds
Charu
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12524
Joined: Wed Jan 03, 2018 6:52 pm

show-hide panes

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com