Question about Event and tab order

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

adntES
User
Posts: 71
Joined: Fri Mar 25, 2011 5:43 pm

Question about Event and tab order

Post by adntES »

Hi again team,

Is there a way to know with an event when the user change the document(when the mdi is on).
I checked about the Selection notifications but this not really apply with my case i would to know when the active document
has been changed

Is it possible to change the document order in the mdi mode. For example, if i close a document that was in the middle and then i open back the document would this be possible to put it back where it was?.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Question about Event and tab order

Post by Vasyl - PDF-XChange »

Hi, Pierre.
Is there a way to know with an event when the user change the document(when the mdi is on).
You may use the next method:

Code: Select all

eventhandler OnEvent(type, name...)
{
     if ((type == PXCVA_OnPropertyChanged) AND (name == "Documents.Active"))
     {
          int justActivatedDocID;
          ctrl.GetProperty(name, out justActivatedDocID, 0);
          ... 
     }
}
Is it possible to change the document order in the mdi mode. For example, if i close a document that was in the middle and then i open back the document would this be possible to put it back where it was?.
I'm afraid, but no way for this in current implementation. Wait for the new version of SDK...

Best
Regards.
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.