diff --git a/PROMS/Volian.Controls.Library/StepItem.cs b/PROMS/Volian.Controls.Library/StepItem.cs index 854540d7..374fa646 100644 --- a/PROMS/Volian.Controls.Library/StepItem.cs +++ b/PROMS/Volian.Controls.Library/StepItem.cs @@ -115,15 +115,33 @@ namespace Volian.Controls.Library { _MyItemInfo = value; int typ = (int)value.MyContent.Type; - if (typ >= 20000) + int subType = typ % 10000; + if (MyItemInfo.IsStep) { - int stepType = typ % 10000; - _MyStepData = value.ActiveFormat.PlantFormat.FormatData.StepDataList[stepType]; + _MyStepData = value.ActiveFormat.PlantFormat.FormatData.StepDataList[subType]; + SetToolTip(_MyStepData.Type); + } + else if (MyItemInfo.IsSection) + { + SetToolTip(value.ActiveFormat.PlantFormat.DocStyles.DocStyleList[subType].Name); + } + else if (MyItemInfo.IsProcedure) + { + SetToolTip("Procedure Title"); } ChangeBar = _MyItemInfo.HasChangeBar(); value.MyContent.Changed += new ContentInfoEvent(MyContent_Changed); } } + + private void SetToolTip(string tip) + { + DevComponents.DotNetBar.SuperTooltipInfo tpi = new DevComponents.DotNetBar.SuperTooltipInfo("", "", tip, null, null, DevComponents.DotNetBar.eTooltipColor.Lemon); + _MyToolTip.MinimumTooltipSize = new Size(0, 24); + _MyToolTip.TooltipDuration = 3; + _MyToolTip.SetSuperTooltip(MyStepRTB, tpi); + } + public StepItem ActiveParent { get { return _MyParentStepItem!=null ? _MyParentStepItem : _MyPreviousStepItem.ActiveParent; } diff --git a/PROMS/Volian.Controls.Library/StepItem.designer.cs b/PROMS/Volian.Controls.Library/StepItem.designer.cs index 6faf06db..b6b24edc 100644 Binary files a/PROMS/Volian.Controls.Library/StepItem.designer.cs and b/PROMS/Volian.Controls.Library/StepItem.designer.cs differ diff --git a/PROMS/Volian.Controls.Library/StepItem.resx b/PROMS/Volian.Controls.Library/StepItem.resx index 37d92960..93e3f68d 100644 --- a/PROMS/Volian.Controls.Library/StepItem.resx +++ b/PROMS/Volian.Controls.Library/StepItem.resx @@ -120,6 +120,9 @@ True + + 148, 17 + True