[mapguide-commits] r5697 - trunk/Tools/Maestro/Maestro.Base

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Apr 12 08:02:22 EDT 2011


Author: jng
Date: 2011-04-12 05:02:22 -0700 (Tue, 12 Apr 2011)
New Revision: 5697

Modified:
   trunk/Tools/Maestro/Maestro.Base/ZonedContainer.cs
Log:
#1663: Color the active document tab different from the inactive ones


Modified: trunk/Tools/Maestro/Maestro.Base/ZonedContainer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/ZonedContainer.cs	2011-04-12 11:54:43 UTC (rev 5696)
+++ trunk/Tools/Maestro/Maestro.Base/ZonedContainer.cs	2011-04-12 12:02:22 UTC (rev 5697)
@@ -154,7 +154,11 @@
 
                 var tabRect = tab.GetTabRect(e.Index);
 
-                e.Graphics.FillRectangle(new SolidBrush(SystemColors.ControlLightLight), tabRect);
+                if (e.Index == tab.SelectedIndex)
+                    e.Graphics.FillRectangle(new SolidBrush(SystemColors.ControlLightLight), tabRect);
+                else
+                    e.Graphics.FillRectangle(new SolidBrush(SystemColors.ControlLight), tabRect);
+
                 e.Graphics.DrawString(title, f, TitleBrush, new Point(r.X, r.Y));
 
                 if (draw)



More information about the mapguide-commits mailing list