Author: aolk
Date: 2006-04-25 13:06:35 -0400 (Tue, 25 Apr 2006)
New Revision: 59861
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
* ThemeWin32Classic.cs: Button image alignment now matches exactly
ms
2006-04-25 Alexander Olk <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-04-25 16:43:57 UTC (rev 59860)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-04-25 17:06:35 UTC (rev 59861)
@@ -1,5 +1,10 @@
2006-04-25 Alexander Olk <[EMAIL PROTECTED]>
+ * ThemeWin32Classic.cs: Button image alignment now matches exactly
+ ms
+
+2006-04-25 Alexander Olk <[EMAIL PROTECTED]>
+
* ThemeWin32Classic.cs: Fixed drawing code for buttons with an
image. The image position is always the same, no matter if the
button is pressed or not.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-04-25 16:43:57 UTC (rev 59860)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
2006-04-25 17:06:35 UTC (rev 59861)
@@ -282,62 +282,62 @@
switch (button.image_alignment) {
case ContentAlignment.TopLeft: {
- image_x=0;
- image_y=0;
+ image_x = 5;
+ image_y = 5;
break;
}
case ContentAlignment.TopCenter: {
- image_x=(width-image_width)/2;
- image_y=0;
+ image_x = (width - image_width) / 2;
+ image_y = 5;
break;
}
case ContentAlignment.TopRight: {
- image_x=width-image_width;
- image_y=0;
+ image_x = width - image_width - 5;
+ image_y = 5;
break;
}
case ContentAlignment.MiddleLeft: {
- image_x=0;
- image_y=(height-image_height)/2;
+ image_x = 5;
+ image_y = (height - image_height) / 2;
break;
}
case ContentAlignment.MiddleCenter: {
- image_x=(width-image_width)/2;
- image_y=(height-image_height)/2;
+ image_x = (width - image_width) / 2;
+ image_y = (height - image_height) / 2;
break;
}
case ContentAlignment.MiddleRight: {
- image_x=width-image_width;
- image_y=(height-image_height)/2;
+ image_x = width - image_width - 4;
+ image_y = (height - image_height) / 2;
break;
}
case ContentAlignment.BottomLeft: {
- image_x=0;
- image_y=height-image_height;
+ image_x = 5;
+ image_y = height - image_height - 4;
break;
}
case ContentAlignment.BottomCenter: {
- image_x=(width-image_width)/2;
- image_y=height-image_height;
+ image_x = (width - image_width) / 2;
+ image_y = height - image_height - 4;
break;
}
case ContentAlignment.BottomRight: {
- image_x=width-image_width;
- image_y=height-image_height;
+ image_x = width - image_width - 4;
+ image_y = height - image_height - 4;
break;
}
default: {
- image_x=0;
- image_y=0;
+ image_x = 5;
+ image_y = 5;
break;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches