Check Boxes - Mutually Exclusive
-
You will have to handle it in code. In the check box click handler, check or uncheck the other. Or you should consider using radio buttons.
«_Superman_»
-
You will have to handle it in code. In the check box click handler, check or uncheck the other. Or you should consider using radio buttons.
«_Superman_»
-
Unless you have a REEEEEEEEEEEALLY good reason to make these checkboxes, your customers will thank you for making them radio buttons. The standard window controls look different for a reason - to give the user different expectations about how they work. And if your work is not about keeping users of the software happy [and therefore giving you money to buy food], why are you doing this? Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
-
Anandi.VC wrote:
How to make two check boxes mutually exclusive?
Is that why Radio buttons where invented for??
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus Best wishes to Rexx[^]
-
Tell them they are radio buttons. ;)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Radio buttons can handle "one and only one" functionality. But mutually exclusive check boxes can handle "zero or one" functionality which is not possible with radio buttons. Microsoft also uses mutually exclusive check boxes in their products.
«_Superman_»
-
Radio buttons can handle "one and only one" functionality. But mutually exclusive check boxes can handle "zero or one" functionality which is not possible with radio buttons. Microsoft also uses mutually exclusive check boxes in their products.
«_Superman_»
«_Superman_» wrote:
But mutually exclusive check boxes can handle "zero or one" functionality which is not possible with radio buttons.
Uh, yeah, it is. You add another radio button, label it "none of the above", and give it the same meaning in your program that the somewhat-less-than-obvious fewer than the maximum number of checkable checkboxes are checked state would have had, should you have been mad enough to actually implement such an atrocity. Now you have a finite number of states, all of which are explicitly named, and all of which can be selected with a single click. Radio buttons - learn to love 'em.
-
«_Superman_» wrote:
But mutually exclusive check boxes can handle "zero or one" functionality which is not possible with radio buttons.
Uh, yeah, it is. You add another radio button, label it "none of the above", and give it the same meaning in your program that the somewhat-less-than-obvious fewer than the maximum number of checkable checkboxes are checked state would have had, should you have been mad enough to actually implement such an atrocity. Now you have a finite number of states, all of which are explicitly named, and all of which can be selected with a single click. Radio buttons - learn to love 'em.
Okay. In VC++ 6.0, take a look at the properties dialog of a button. You will see 2 check boxes for
Icon
andBitmap
. So if this is an atrocity, how better would it be to do it in that space with radio buttons? :cool:«_Superman_»
-
Okay. In VC++ 6.0, take a look at the properties dialog of a button. You will see 2 check boxes for
Icon
andBitmap
. So if this is an atrocity, how better would it be to do it in that space with radio buttons? :cool:«_Superman_»