How to get UserChoice of the confirmation dialog

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

anti_g
User
Posts: 22
Joined: Thu Apr 02, 2009 9:55 am

How to get UserChoice of the confirmation dialog

Post by anti_g »

Hi guys,

first of all, I am impressed with the promptness and quality of support so far.

But now I am facing another problem: how can I get the user response (UserChoice) from the confirmation dialog of the SaveDocument routine? To save or not to save... :wink:

Thanks,
Anton.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to get UserChoice of the confirmation dialog

Post by Corwin - Tracker Sup »

You cannot get it. But you can set your own choice :)
So when you receive PXCVA_OnDisplayPrompt with "Prompts.ConfirmDocumentSave" name, you may show your own confirmation dialog and pass result from it to "Prompts.ConfirmDocumentSave.UserChoice" property.
For more information please look at the "Objects::Prompts.ConfirmDocumentSave" topic in Viewer ActiveX Help file.