0

My dekstop application use a lot of .showdialog to open new form. Then it's necessary placing some method for the user who want close the popup form. I already using 'x' (close form, near minimize and maximize) in case user need to close the form.

Do i need adding exit/cancel/close in all popup form too ?

For example :

Include

2 Answers 2

4

Yes. You do need a matching Cancel button to go with Save. If you don't, it may not be obvious how to close the dialog except via Save:

Dialog with only Save button

This is particularly the case where the other buttons such as the X are only coloured on hover — as appears to be the case here. It may be less important if the X is always red. However, you should also consider accessibility. A screen-reading application won't necessarily identify a way to close the dialog via system buttons, and if there is no Cancel button it may not react to the keyboard's Esc either.

0
0

It seems that the major influencers today actually agree on which buttons to show, but disagree on whether or not to show the 'X to close' button to the top.

According to Microsoft MSDN documentation, modal dialogs in Windows have both an X to close as well as buttons that perform the action and then close.

But this has changed in both Apple latest iOS and Google material design. Both have dropped the X to close in modal dialogs, leaving just the buttons.

2
  • The question is about showing the button in the dialog, not if you should show the corner "x" button. So it does not depend on who you ask - you always show the dialog button. The guidelines you point to stress exactly that. Commented Dec 30, 2014 at 15:27
  • Agreed. I've removed that line from the answer.
    – staccato
    Commented Dec 30, 2014 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.