#At file:///C:/Users/Reggie/work/wex/installer-updated/ based on revid:reggie.burnett@stripped
292 Reggie Burnett 2011-02-03
small change to fix how the state images look on some systems
modified:
WexInstaller/Core/ListViewWex.cs
=== modified file 'WexInstaller/Core/ListViewWex.cs'
=== modified file 'WexInstaller/Core/ListViewWex.cs'
--- a/WexInstaller/Core/ListViewWex.cs 2011-02-03 04:01:58 +0000
+++ b/WexInstaller/Core/ListViewWex.cs 2011-02-03 15:10:06 +0000
@@ -126,7 +126,14 @@
{
e.DrawDefault = false;
- e.DrawBackground();
+ e.Graphics.FillRectangle(new SolidBrush(e.Item.BackColor), e.Bounds);
+ if (e.Item.StateImageIndex >= 0)
+ {
+ Point pt = e.Bounds.Location;
+ pt.X += (e.Bounds.Width - StateImageList.ImageSize.Width) / 2;
+ pt.Y += (e.Bounds.Height - StateImageList.ImageSize.Height) / 2;
+ StateImageList.Draw(e.Graphics, pt, e.Item.StateImageIndex);
+ }
base.OnDrawItem(e);
}
Attachment: [text/bzr-bundle] bzr/reggie.burnett@oracle.com-20110203151006-iz74r5tdusur1meu.bundle
| Thread |
|---|
| • bzr commit into wex-installer-1.0 branch (reggie.burnett:292) | Reggie Burnett | 3 Feb |