diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 0e8473eb..46128e9c 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -139,19 +139,16 @@ namespace Volian.Controls.Library { InitializeComponent(); _RibbonControl.SizeChanged += new EventHandler(_RibbonControl_SizeChanged); + // When AutoExpand is set to true, [CTRL][F1] will hide/expand the ribbon bar + // causing its state to be out of sync with that of the QAT menu option to + // expand/hide the ribbon. + // Note: the QAT menu is to the right of the V start button in the upper left + _RibbonControl.AutoExpand = false; } void _RibbonControl_SizeChanged(object sender, EventArgs e) { this.Size = _RibbonControl.Size; - if (MyStepItem != null) - { - // This is needed to reset the Ribbon Expanded status when [CTRL][F1] is used. - // We found that using the [CTRL][F1] keystroke will cause the Ribbon state to - // be out so of sync with that of the QAT menu option to expand/hide the ribbon. - // Note: the QAT menu is to the right of the V start button in the upper left - _RibbonControl.Expanded = MyStepItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.RibbonExpanded; - } } public bool Expanded {