Author: atsushi
Date: 2006-06-28 13:23:07 -0400 (Wed, 28 Jun 2006)
New Revision: 62121
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridTextBox.cs
Log:
2006-06-28 Atsushi Enomoto <[EMAIL PROTECTED]>
* PropertyGrid.cs,
PropertyGridTextBox.cs : explicitly set BackColor to differentiate
item lines from other area (It also makes BackColor consistent and
compatible with .NET). Fixed bug #78564.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-06-28 17:09:54 UTC (rev 62120)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-06-28 17:23:07 UTC (rev 62121)
@@ -1,3 +1,10 @@
+2006-06-28 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * PropertyGrid.cs,
+ PropertyGridTextBox.cs : explicitly set BackColor to differentiate
+ item lines from other area (It also makes BackColor consistent and
+ compatible with .NET). Fixed bug #78564.
+
2006-06-28 Jonathan Chambers <[EMAIL PROTECTED]>
* PropertyGrid.cs: refresh toolbar when PropertySort is set.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs
2006-06-28 17:09:54 UTC (rev 62120)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs
2006-06-28 17:23:07 UTC (rev 62121)
@@ -1005,7 +1005,12 @@
// as we can not change the color for BorderStyle.FixedSingle
and we need the correct
// ClientRectangle so that the ScrollBar doesn't draw over the
border we need this class
internal class BorderHelperControl : Control {
-
+
+ public BorderHelperControl ()
+ {
+ BackColor = ThemeEngine.Current.ColorWindow;
+ }
+
protected override void OnPaint (PaintEventArgs e)
{
e.Graphics.DrawRectangle
(SystemPens.ControlDark, 0 , 0 , Width - 1, Height - 1);
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridTextBox.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridTextBox.cs
2006-06-28 17:09:54 UTC (rev 62120)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridTextBox.cs
2006-06-28 17:23:07 UTC (rev 62121)
@@ -59,6 +59,10 @@
dropdown_button.Click += new
System.EventHandler(dropdown_button_Click);
textbox.AutoSize = false;
+ // this is to explicitly set bgcolor to avoid
+ // default ReadOnly color (which makes grid item
+ // bgcolor inconsistent).
+ textbox.BackColor = textbox.BackColor;
textbox.BorderStyle = BorderStyle.None;
textbox.Dock = DockStyle.Fill;
textbox.TabIndex = 3;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches