Archive: nsDialog OK Dialog


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?


wouldn't a simple messagebox with MB_OK for the button style be easier?

-daz


It is a minimum requirements dialog and will have coloring/modified format


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 )


Perfect! Thank you very much!