Added code to minimize ribbon

This commit is contained in:
Rich 2009-05-19 19:48:18 +00:00
parent 56fdefa924
commit d4832f12ff

View File

@ -107,6 +107,7 @@ namespace VEPROMS
epAnnotations.Expanded = false;
infoPanel.Expanded = false;
toolsPanel.Expanded = false;
ribbonControl1.ExpandedChanged +=new EventHandler(ribbonControl1_ExpandedChanged);
}
@ -1205,6 +1206,11 @@ namespace VEPROMS
if (toolsPanel.Expanded)
InitiateSearch(true);
}
private void ribbonControl1_ExpandedChanged(object sender, EventArgs e)
{
Console.WriteLine("Size {0}",ribbonControl1.Expanded);
// TODO: Need to send message to all StepTabPanels and tell them to minimize their ribbons.
tc.RibbonExpanded = ribbonControl1.Expanded;
}
}
}