Any event on closing a pane?

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

relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Any event on closing a pane?

Post by relapse »

Hello!

Does your viewer fire any event (in your docs- "notification") if a pane is closed?




Thanks!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Any event on closing a pane?

Post by Stefan - PDF-XChange »

Hello Relapse,

On toggling the visibility of the Bookmakrs pane an OnPropertyChanged event with name:
Documents[#DocID].View.Panes["Bookmarks"].Visible
will be fired - and you can then check whether the state was changed to true or false.

Best,
Stefan
relapse
User
Posts: 167
Joined: Wed Jan 18, 2012 11:10 am

Re: Any event on closing a pane?

Post by relapse »

Thanks a lot, I've coded it in this way (C#):

Code: Select all

        private void PdfViewerEvents(object sender, _IPDFXCviewEvents_OnEventEvent e)
        {
            if (e.type == 1)
            {
                object dataOut;         
                pdfViewer.GetDocumentProperty(_documentId, "View.Panes[\"Comments\"].Visible", out dataOut, 0);
                IsCommentsPanelVisible = Convert.ToBoolean(dataOut);
            }
        }
an OnPropertyChanged event
is defined in the "if" query (e.type == 1)! See 2.4.2 PXCVA_EventTypes in the docs (info for other programmers) :D
Last edited by relapse on Thu Apr 12, 2012 11:21 am, edited 1 time in total.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Any event on closing a pane?

Post by Stefan - PDF-XChange »

Hi relapse,

Thanks for sharing that.
Please also check the FullDemo sample project and the

axCoPDFXCview1_OnEvent
and
OnPropertyChanged
methods in it :)

Cheers,
Stefan