[mapguide-commits] r4467 - trunk/Tools/Maestro/Maestro
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Dec 23 16:28:33 EST 2009
Author: ksgeograf
Date: 2009-12-23 16:28:33 -0500 (Wed, 23 Dec 2009)
New Revision: 4467
Modified:
trunk/Tools/Maestro/Maestro/FormMain.cs
Log:
Maestro:
Fixed issue #1202.
Modified: trunk/Tools/Maestro/Maestro/FormMain.cs
===================================================================
--- trunk/Tools/Maestro/Maestro/FormMain.cs 2009-12-23 21:21:31 UTC (rev 4466)
+++ trunk/Tools/Maestro/Maestro/FormMain.cs 2009-12-23 21:28:33 UTC (rev 4467)
@@ -132,7 +132,7 @@
private ToolStripMenuItem DuplicateMenu;
private SaveFileDialog SaveAsXmlDialog;
private OpenFileDialog OpenXmlFileDialog;
- private string m_lastTooltip;
+ private string m_lastTabPageTooltip;
public FormMain()
{
@@ -2494,11 +2494,20 @@
for(int i = 0; i < tabItems.TabPages.Count; i++)
if (tabItems.GetTabRect(i).Contains(e.Location))
{
- TabPageTooltip.SetToolTip(tabItems, tabItems.TabPages[i].ToolTipText);
+ if (m_lastTabPageTooltip != tabItems.TabPages[i].ToolTipText)
+ {
+ m_lastTabPageTooltip = tabItems.TabPages[i].ToolTipText;
+ TabPageTooltip.SetToolTip(tabItems, tabItems.TabPages[i].ToolTipText);
+ }
+
return;
}
- TabPageTooltip.SetToolTip(tabItems, null);
+ if (m_lastTabPageTooltip != null)
+ {
+ m_lastTabPageTooltip = null;
+ TabPageTooltip.SetToolTip(tabItems, null);
+ }
}
private void tabItems_MouseLeave(object sender, EventArgs e)
More information about the mapguide-commits
mailing list