Distinguish between a Pane being Closed and not Visible

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

DSSavant
User
Posts: 216
Joined: Thu Jul 08, 2004 7:29 pm

Distinguish between a Pane being Closed and not Visible

Post by DSSavant »

How do I tell if a given pane such as the Thumbnails is Closed as compare to Not Visible?

To be clear, when running the product and the Thumbnail tab is shown, you can click the splitter bar at the hashes and decrease its screen real estate down to near nothing. You will still see the splitter bar. I consider the Thumbnail pane and all others for that much as not being visible but present in the UI. I would also consider the Thumbnail pane not being visible if the Comments pane was active and on top of it. Nevertheless the Thumbnail pane is not Closed as I can see the Tab at the bottom of the pane area. On the other hand, if the user hits the "X" at the top of the pane to Close the tab, then the Thumbnail pane would be closed as it would not have the potential of being shown again - no tab, no nothing.

So, I need to either disable the Close ("X") capabilities for the panes OR I need a more refined manner to determine the state of the pane. Today I can only find out if a pane is visible or not.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Distinguish between a Pane being Closed and not Visible

Post by Vasyl - PDF-XChange »

Hi, DSSavant.
..I need a more refined manner to determine the state of the pane. Today I can only find out if a pane is visible or not.
You may use one undocumented feature:

Code: Select all

GetProperty("Documents[#<docID>].View.Panes[<PaneName>].Present", val, 0);
Boolean 'Present' read-only property means: pane is opened(pane can be invisible also) or pane is closed fully.
Boolean 'Visible' property means: pane is visible or hidden really.

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.