Bug 1212 - [PATCH] CheckBoxes do not show indeterminate state properly
Summary: [PATCH] CheckBoxes do not show indeterminate state properly
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-03 18:51 UTC by Stephen McConnel
Modified: 2011-10-17 06:34 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
sample program that displays the problem (5.94 KB, application/x-compressed-tar)
2011-10-03 18:51 UTC, Stephen McConnel
Details
proposed patch (845 bytes, patch)
2011-10-03 19:38 UTC, Stephen McConnel
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Stephen McConnel 2011-10-03 18:51:18 UTC
Created attachment 571 [details]
sample program that displays the problem

The standard CheckBox control shows only the Checked and Unchecked states.  If you try to display the Indeterminate state, it looks the same as the Checked state.
Comment 1 Stephen McConnel 2011-10-03 19:38:39 UTC
Created attachment 572 [details]
proposed patch
Comment 2 Stephen McConnel 2011-10-03 19:41:09 UTC
The proposed patch uses SystemColors.ControlDark instead of SystemColors.ControlDarkDark to draw a checkbox for the Indeterminate state.  This doesn't exactly match the Microsoft .Net behavior, but it does distinguish much better between Checked and Indeterminate.  (SystemColors.ControlDarkDark is too close to Color.Black!)
Comment 3 Tom Hindle 2011-10-17 06:34:49 UTC
commit 305cfa33acd9b7ec99504711f4fe39dbb11e5f6f