Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Cancel - OK

Cancel - OK

Scheduled Pinned Locked Moved The Lounge
comagentic-ai
123 Posts 59 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B BillWoodruff

    No way the "OK" button should always be the default button that gets an Enter/Return as a click ! Which is the clicked-if-enter/return should depend on context, where context includes the application, the particular circumstances/meaning of a specific dialog, whether or not "undo" is available, etc.

    “I speak in a poem of the ancient food of heroes: humiliation, unhappiness, discord. Those things are given to us to transform, so that we may make from the miserable circumstances of our lives things that are eternal, or aspire to be so.” Jorge Luis Borges

    J Offline
    J Offline
    Jeremy Falcon
    wrote on last edited by
    #56

    BillWoodruff wrote:

    No way the "OK" button should always be the default button that gets an Enter/Return as a click !

    I actually agree with you on that. Realistically though it is more than times than not.

    Jeremy Falcon

    1 Reply Last reply
    0
    • C Colin Mullikin

      While I would love for this to be an option, it would require some work. We don't really have an ancestor form with the OK and Cancel that all other forms inherit from. If we did, it would be a nice easy switch, but as it is, the placement of the OK and Cancel buttons has to be switched in roughly 200 forms. We could potentially add a bit of code into each form that would dynamically change the position as you suggest, but I'm not sure it would be worth the work. Also, it would just spawn a new debate of what should be the default setting: the new way or the old way...

      The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

      P Offline
      P Offline
      Philippe Mori
      wrote on last edited by
      #57

      It should be relatively easy to make a function that would to that automatically and just ensure that the function is called when the dialog is displayed. If your code is object oriented, then you might essentially use a base dialog/form that will do it automatically and just update existing form to derive from that class instead of the original one. This would really the best option and if the application is installed for the first time, it could use the new order by default and otherwise use the old order. That way everyone is happy and the developer has some chalenge...

      Philippe Mori

      1 Reply Last reply
      0
      • C Colin Mullikin

        For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

        The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

        R Offline
        R Offline
        RossMW
        wrote on last edited by
        #58

        Consistency is the key... But I'm curious. Am I the only person who uses .net msgbox's and hence to achieve consistency you have to use OK-Cancel.

        1 Reply Last reply
        0
        • J Jeremy Falcon

          Colin Mullikin wrote:

          That is his one and only reason.

          And it's a valid reason.

          Colin Mullikin wrote:

          He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people).

          It probably annoyed them when y'all did it backwards to start with. Can always annoy them again. I've studied UI, and the whole reasoning behind doing something like Cancel | OK is completely invalidated by never changing its order. In fact, to be consistent with the premise of it, you should change it randomly (ie to force users to read the message). Otherwise it just shows a complete lack of disregard for standards and poor UI design.

          Jeremy Falcon

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #59

          :thumbsup:

          Will Rogers never met me.

          1 Reply Last reply
          0
          • C Colin Mullikin

            For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

            The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

            N Offline
            N Offline
            Nagy Vilmos
            wrote on last edited by
            #60

            Simple solution is to have a OkayCancelButtons composite control that you can use a style setting to choose which way round they appear. Default is Cancel/Okay and QA mode is Okay/Cancel

            1 Reply Last reply
            0
            • C Colin Mullikin

              For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

              The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

              M Offline
              M Offline
              Member 4724084
              wrote on last edited by
              #61

              Doing this is entirely situational, switching the OK/Cancel buttons on a few dialogue boxes now and then so that the end user actually has to pay attention as to what they are doing rather than just clicking OK on everything while being a zoned out drone. Alternately you can randomise the OK/Cancel button so that on some dialogue boxes they are switched and on others not, but when the program is used a second time, the OK/Cancel buttons may be in the reverse order. But if you don't mind your users being zoned out drones then there is no legitimate reason to switch them.

              1 Reply Last reply
              0
              • J Jeremy Falcon

                jschell wrote:

                Good try but no I don't buy it.

                Agreed.

                Jeremy Falcon

                M Offline
                M Offline
                MarkLoboo
                wrote on last edited by
                #62

                Jeremy Falcon wrote:

                jschell wrote:

                Good try but no I don't buy it.

                Agreed.

                Me too.

                All are born right-handed. Only gifted few overcome it. There's NO excuse for not commenting your code.

                1 Reply Last reply
                0
                • F Forogar

                  Quote:

                  what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it).

                  Is just plain wrong. The OK or "moving forward" button should be at the bottom right. The Cancel or "give up and go back" button should be to the left of it similar in action and placement to Forward and Back buttons on browsers - except they are at the top.

                  - I would love to change the world, but they won’t give me the source code.

                  P Offline
                  P Offline
                  Peter Adam
                  wrote on last edited by
                  #63

                  It is just plain wrong. The dialog is shown for breaking the sequence, not for making it flow.

                  1 Reply Last reply
                  0
                  • C Colin Mullikin

                    For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

                    The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                    M Offline
                    M Offline
                    Matty22
                    wrote on last edited by
                    #64

                    Does seem kinda dumb to have them the wrong way around Windows has had them the same way around for way more than a decade

                    1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      Colin Mullikin wrote:

                      That is his one and only reason.

                      And it's a valid reason.

                      Colin Mullikin wrote:

                      He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people).

                      It probably annoyed them when y'all did it backwards to start with. Can always annoy them again. I've studied UI, and the whole reasoning behind doing something like Cancel | OK is completely invalidated by never changing its order. In fact, to be consistent with the premise of it, you should change it randomly (ie to force users to read the message). Otherwise it just shows a complete lack of disregard for standards and poor UI design.

                      Jeremy Falcon

                      M Offline
                      M Offline
                      Mike Winiberg
                      wrote on last edited by
                      #65

                      WHS!

                      1 Reply Last reply
                      0
                      • C Colin Mullikin

                        For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

                        The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                        M Offline
                        M Offline
                        Mark AJA
                        wrote on last edited by
                        #66

                        Change all the 'OK' buttons to 'This is what I want to do' and 'Cancel' to 'I do not wish to change my mind' The advantage of this is that you will have no room for any other buttons, so you can't change their test.!

                        1 Reply Last reply
                        0
                        • C Colin Mullikin

                          For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

                          The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                          V Offline
                          V Offline
                          V 0
                          wrote on last edited by
                          #67

                          Colin Mullikin wrote:

                          That is his one and only reason

                          Unfortunately it is a good reason. One thing I learned is that users complain a lot, but very often they adapt within a few hours of the rollout. Those that can't adapt are those that couldn't work with it in the first place. Besides 200 dialogs is not thát much. Yes it is a bloody annoying and tedious job. it will keep you busy for the better part of the day, but that's about it. But I can imagine it's not much fun to be told to do something when you did it differently for so long.

                          V.
                          (MQOTD rules and previous solutions)

                          M 1 Reply Last reply
                          0
                          • J Jeremy Falcon

                            Colin Mullikin wrote:

                            We have been consistently doing it this way for over a decade.

                            I get it, but I don't believe there is every a valid reason for continuing to do something wrong. I realize you got users to deal with that may even not care as much as devs do, but I'd still fix it.

                            Jeremy Falcon

                            M Offline
                            M Offline
                            Matthys Terblanche
                            wrote on last edited by
                            #68

                            I agree. But unfortunatly this is the ideal and not the reality in the world. I've seen many applications where the developers thought it good to make the Cancel button default, not providing hot keys, even providing wonderful names for there buttons like proceed etc. Although the reasoning behind it may be to force the user to read the screen, I think the rest of the argument should keep in mind that a user who is familiar with a system would like to rely on automatics for the obvious tasks, and have a consistent experience across different applications. Well, one can only hope... :^)

                            1 Reply Last reply
                            0
                            • C Colin Mullikin

                              For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

                              The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                              J Offline
                              J Offline
                              Johnny J
                              wrote on last edited by
                              #69

                              Well, you should have thought of that before you did such a piss poor design... ;)

                              Anything that is unrelated to elephants is irrelephant
                              Anonymous
                              -----
                              The problem with quotes on the internet is that you can never tell if they're genuine
                              Winston Churchill, 1944
                              -----
                              I'd just like a chance to prove that money can't make me happy.
                              Me, all the time

                              1 Reply Last reply
                              0
                              • C Colin Mullikin

                                For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

                                The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                                H Offline
                                H Offline
                                hairy_hats
                                wrote on last edited by
                                #70

                                I came to Windows from RISC OS, where OK was in the bottom right, two decades ago, and I still think that it's the correct layout. If MS thinks it's right for the order to be OK - Cancel, why don't they use Next - Prev too?

                                K 1 Reply Last reply
                                0
                                • K Kevin Marois

                                  In my expert opinion :), the Cancel button should ALWAYS be on the right, and here's why... Your app undoubtedly has many dialogs, and not all of them have OK and Cancel. I have been writing enterprise apps going on 30 years. The set of dialogs I use contain some of these... - Yes & Cancel - Yes, No, Cancel. - Select & Cancel - Login & Cancel. - Save & Cancel. - Proceed & Cancel. - Connect & Cancel - Rotate, Align, Cancel - Ignore QA & Cancel ... and there are more. See the pattern? Cancel is ALWAYS last. Send your God this book[^]. It was written in book form by MS many moons ago, but the principals still apply. Book form is here[^] Then have him see this[^].

                                  If it's not broken, fix it until it is

                                  H Offline
                                  H Offline
                                  hairy_hats
                                  wrote on last edited by
                                  #71

                                  Kevin Marois wrote:

                                  - Cancel & Yes
                                  - Cancel, No, Yes.
                                  - Cancel & Select
                                  - Cancel & Login.
                                  - Cancel & Save.
                                  - Cancel & Proceed.
                                  - Cancel & Connect
                                  - Cancel, Rotate, Align
                                  - Cancel & Ignore QA

                                  FTFY. ;)

                                  1 Reply Last reply
                                  0
                                  • C Colin Mullikin

                                    For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

                                    The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                                    B Offline
                                    B Offline
                                    Bassam Abdul Baki
                                    wrote on last edited by
                                    #72

                                    Cancel him, OK?

                                    Web - BM - RSS - Math - LinkedIn

                                    1 Reply Last reply
                                    0
                                    • H hairy_hats

                                      I came to Windows from RISC OS, where OK was in the bottom right, two decades ago, and I still think that it's the correct layout. If MS thinks it's right for the order to be OK - Cancel, why don't they use Next - Prev too?

                                      K Offline
                                      K Offline
                                      kalberts
                                      wrote on last edited by
                                      #73

                                      Way back, in the old days when MS and IBM were friends, was developed a standard called the Common User Access, CUA, giving the common guidelines for Windows, OS/2 and Motif user interfaces. The CUA was published as an IBM document, but was endorsed by MS (and I believe several other companies). Windows 3 was developed in close to 100% adherence to the CUA rules. The CUA stated clearly that normal completion of a dialog is done by clicking the button in the lower right corner. In other words, OK to the right. The first CUA rule (at least among the essential ones) were the location of the Help menu: CUA requires it to be pushed to the very right on the menu line. I don't remember when MS decided to move it together with the other pulldown menus; that could be in Win 3.11. We started out with consistency where you by instinct clicked the bottom right button to complete normally, to a transition period where an increaing fraction of the applications made you follow your instincts, swear, and redo the entire dialog, this time reading the button texts closely, to the current situation where everything is so inconsistent and free of rules that you cannot rely on instincts but must read all the buttons anyway. ("But OUR software is consistent" - sure, the good thing about standards is that there are so many to choose from. Most customers buy software from several different vendors.) Whenever I make user interfaces, I follow the CUA rule of normal termination being the bottom right button. Nowadays, all user must read the button labels anyway, so this is as good a choice as any other. Or even better, since I can justify my choice by referring to a user interface standard document. (True enough: It was published more than 25 years ago, but it is far better than nothing).

                                      P 1 Reply Last reply
                                      0
                                      • C Colin Mullikin

                                        For several months now, one of our testers has been pushing to get the OK and Cancel buttons switched in every single dialog in our application (roughly 200 dialogs). His only reasoning for this is that the way we do it (OK in bottom right corner, Cancel to the left of it) is the opposite of what Microsoft does throughout Windows(Cancel in bottom right corner, OK to the left of it). That is his one and only reason. He fails to acknowledge that switching it will annoy the hell out of every single person that uses our software (thousands of people). The next time he brings it up I might punch him in the face. :mad:

                                        The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                                        K Offline
                                        K Offline
                                        kalberts
                                        wrote on last edited by
                                        #74

                                        The period in my life when I had my highest frequency of swearing loudly at my office desk was when we used an editor that at exit might display a warning (this was before the mouse was common, so you responded through the keyboard: "You have not saved the last modifications to the file. Do you want to save it before exiting? (Y/N)" Of course you would immediately hit the "Y" key. Then we switched to another editor that had very much of the same style user interface, but it would give the warning: "You have not saved the last modifications to the file. Do you really want to exit without saving? (Y/N)" Obviously, from old habit, you hit the "Y" key. Then you would swear loudly and be grumpy for the rest of the day. Moral: Don't play games with the user's old habits.

                                        X 1 Reply Last reply
                                        0
                                        • C Colin Mullikin

                                          As a side note, I should mention that the initial design decision was made over a decade ago. Switching now benefits no one. A reason I have seen for Cancel | OK is that if the user does read the buttons, it results in fewer visual fixations. If they want to click OK, the result is two visual fixations: Cancel, OK, click. If the buttons are switched, the result is three visual fixations: OK, Cancel, OK, click.

                                          The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                                          S Offline
                                          S Offline
                                          Stefan_Lang
                                          wrote on last edited by
                                          #75

                                          Just a thought: you seem to assume that every user always clicks buttons. Depending on your application, and considering the fact that some users are really good at the keyboard and may prefer not having to resort to the mouse, how many of your users, do you think, may be using the keyboard instead, and may be annoyed by the fact that for your - and only your - application they need to type [tab]-[tab}-[return] rather than just [tab]-return]? As a software devolper, I see that a lot of functionality in software development tools are mouse-oriented. Yet these functions are all also available via keyboard shortcuts or keyboard navigation! There are plenty of professionals who almost never use the mouse at all, simply because it slows them down. And I'm sure they would be less than happy if any of their tools would favor Cancel/OK over OK/Cancel!

                                          GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto) Point in case: http://www.infoq.com/news/2014/02/apple_gotofail_lessons[^]

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups