Document Change/Close Notification is missing (?)

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

quietstorm
User
Posts: 25
Joined: Wed Feb 10, 2010 11:37 am

Document Change/Close Notification is missing (?)

Post by quietstorm »

Hi everyone!

That's my problem: When multiple documents are opened, if I change the active document (clicking on an upper tab) or I close one of them (clicking on the X of the tab), the notification of the operation performed is not raised.

In my specific case, it's important to be notified of these two events, to synchronize the container application with the active document in the moment this event happens.

At least, I didn't find it in the docs... any help would be appreciated.

Greetings! :D

Fabrizio
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Document Change/Close Notification is missing (?)

Post by Vasyl-Tracker Dev Team »

Hi, Fabrizio.

You may intercept next events:

Code: Select all

OnEvent(type, name)
{
...
     if (type == PXCVA_OnPropertyChanged)
     {
         if (name == "Documents.Active")
         { 
              // the other document is activated
         }
         else if (name == "Documents.Count")
         {
              // opened or closed any document
         }
     }
...
}
Best
Regards.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
quietstorm
User
Posts: 25
Joined: Wed Feb 10, 2010 11:37 am

Re: Document Change/Close Notification is missing (?)

Post by quietstorm »

I got it!

Thanks for the quick and accurate answer. :D

Greetings!
Fabrizio!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17948
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Document Change/Close Notification is missing (?)

Post by Tracker Supp-Stefan »

Our Pleasure Fabrizio!

And Kudos to Vasyl :)

Best,
Stefan