This commit is contained in:
2009-09-01 14:33:11 +00:00
parent c302540801
commit f3bb9786f0
3 changed files with 7 additions and 45 deletions

View File

@@ -77,7 +77,7 @@ namespace Volian.Controls.Library
BuildSymbolGallery(sl, galleryContainerSymbolsCM3);
}
SetButtonAndMenuEnabling();
SetStepButtonAndMenuEnabling();
_MyLastFormatID = MyItemInfo.ActiveFormat.FormatID;
}
}
@@ -287,9 +287,11 @@ namespace Volian.Controls.Library
btnCMEditTran.Enabled = false;
btnCMEditRO.Enabled = false;
}
SetStepButtonAndMenuEnabling();
}
private void SetStepButtonAndMenuEnabling()
{
btnInsPgBrk.Checked = false;
// see if manual page break - only available on HLS
if (MyItemInfo.IsHigh)
{
@@ -307,6 +309,7 @@ namespace Volian.Controls.Library
// if on a procedure or section title, don't allow for insert of ROs or Transitions:
// disable buttons. Info panels for ROs and Transitions are made invisible in frmVEPROMS.cs
btnInsTrans.Enabled = btnCMTransition.Enabled = btnInsRO.Enabled = btnCMRO.Enabled = false;
this.Refresh();
return;
}