[mapguide-commits] r6215 - trunk/Tools/Maestro/Maestro.Base
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Nov 10 06:15:11 EST 2011
Author: jng
Date: 2011-11-10 03:15:11 -0800 (Thu, 10 Nov 2011)
New Revision: 6215
Modified:
trunk/Tools/Maestro/Maestro.Base/ZonedContainer.cs
Log:
Make right mouse click also select the tab
Modified: trunk/Tools/Maestro/Maestro.Base/ZonedContainer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/ZonedContainer.cs 2011-11-10 04:26:09 UTC (rev 6214)
+++ trunk/Tools/Maestro/Maestro.Base/ZonedContainer.cs 2011-11-10 11:15:11 UTC (rev 6215)
@@ -196,10 +196,20 @@
{
if (e.Button == MouseButtons.Right)
{
+ var pt = new Point(e.X, e.Y);
+ for (int i = 0; i < tc.TabPages.Count; i++)
+ {
+ if (tc.GetTabRect(i).Contains(pt))
+ {
+ tc.SelectedIndex = i;
+ break;
+ }
+ }
+
if (this.DocumentTabContextMenuEnabled)
return;
- ctxDocumentTabs.Show(tc, new Point(e.X, e.Y));
+ ctxDocumentTabs.Show(tc, pt);
}
}
}
More information about the mapguide-commits
mailing list