Hello!
Does your viewer fire any event (in your docs- "notification") if a pane is closed?
Thanks!
Any event on closing a pane?
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Any event on closing a pane?
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
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
-
- User
- Posts: 167
- Joined: Wed Jan 18, 2012 11:10 am
Re: Any event on closing a pane?
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);
}
}
is defined in the "if" query (e.type == 1)! See 2.4.2 PXCVA_EventTypes in the docs (info for other programmers)an OnPropertyChanged event

Last edited by relapse on Thu Apr 12, 2012 11:21 am, edited 1 time in total.
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Any event on closing a pane?
Hi relapse,
Thanks for sharing that.
Please also check the FullDemo sample project and the
axCoPDFXCview1_OnEvent
and
OnPropertyChanged
methods in it
Cheers,
Stefan
Thanks for sharing that.
Please also check the FullDemo sample project and the
axCoPDFXCview1_OnEvent
and
OnPropertyChanged
methods in it

Cheers,
Stefan