Using MsgBox

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Using MsgBox

Post by docu-track99 »

Hello folks,

I would like to know if it's possible to get a simple sample of how to implement a custom MsgBox, with 3 buttons (Yes, No, Cancel) much like the Save MsgBox that you get when you are closing an unsaved document. There are a lot of options to play with but I'm just looking for a basic msgbox which of course would also allow me to catch the result of which button was pressed (yes, no or cancel).

Thanks,
Doc.It Development
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm

Re: Using MsgBox

Post by Will - Tracker Supp »

Hi docu-track99,

Thanks for the post - Is this what you're looking for?
https://sdkhelp.pdf-xchange.com/vie ... ShowMsgBox
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Using MsgBox

Post by docu-track99 »

Hi Will,

Yes, actually, that is what I was looking for. I had come across it but didn't see a way to do custom buttons, then I saw the MsgBoxStyleFlags which is what I wanted to see. I thought I was going to have to figure out MsgBoxButton and MsgBoxConfig, but it appears ShowMsgBox is adequate for my purposes.

Thanks,
Doc.It Development
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Using MsgBox

Post by Sasha - PDF-XChange »

Glad that helped docu-track99, we'll mark this topic as closed.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ