Zilatica
22nd March 2010 18:48 UTC
nsDialog OK Dialog
Is there a way to create (nsDialogs::Create) an nsDialog with just an OK button? I am trying to write a dialog that does not always show up, but when it does it indicates a problem with the install, gives the user the details, and shows just an OK button which aborts the install.
Is this possible?
DrO
22nd March 2010 19:23 UTC
wouldn't a simple messagebox with MB_OK for the button style be easier?
-daz
Zilatica
22nd March 2010 19:24 UTC
It is a minimum requirements dialog and will have coloring/modified format
Animaether
23rd March 2010 01:50 UTC
You can always manipulate the existing three buttons for the purpose.
I.e. hide two of them, and change the text of the third (presumably the cancel button) to 'OK', then handle the code in the correct callback.
Or hide all three of them and just let an inner dialog button (of your own) deal with calling Abort/Quit.
You can probably distill the required code from this:
http://nsis.sourceforge.net/Buttons_Header
( or use the header as-is )
Zilatica
23rd March 2010 20:11 UTC
Perfect! Thank you very much!