Enter Key on High Level step will default to the current step type
Fix logic for continue message indent
This commit is contained in:
parent
7d3b8872c8
commit
cf8d11623b
@ -2128,10 +2128,15 @@ namespace Volian.Controls.Library
|
|||||||
displayMenu = btnCMInsHLS.Enabled;
|
displayMenu = btnCMInsHLS.Enabled;
|
||||||
Cursor.Position = new Point(0, 0); // Enter Key hit, move mouse pointer out of way of context menu
|
Cursor.Position = new Point(0, 0); // Enter Key hit, move mouse pointer out of way of context menu
|
||||||
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMInsHLS);
|
_ContextMenuBar.SetContextMenuEx(_MyStepRTB, btnCMInsHLS);
|
||||||
|
string lookfor = "XXX";
|
||||||
|
if(_MyStepRTB.MyItemInfo.MyHLS != null)
|
||||||
|
lookfor = " " + (_MyStepRTB.MyItemInfo.MyHLS.MyContent.Type - 20000).ToString();
|
||||||
foreach (DevComponents.DotNetBar.ButtonItem bi in btnCMInsHLS.SubItems)
|
foreach (DevComponents.DotNetBar.ButtonItem bi in btnCMInsHLS.SubItems)
|
||||||
{
|
{
|
||||||
if (bi.Checked)
|
if (bi.Checked)
|
||||||
moveDown = cnt;
|
moveDown = cnt;
|
||||||
|
if(((string) bi.Tag).EndsWith(lookfor))
|
||||||
|
moveDown = cnt;
|
||||||
cnt++;
|
cnt++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -2290,8 +2290,9 @@ namespace Volian.Print.Library
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
SectionConfig sc = itemInfo.MyParent.MyConfig as SectionConfig;
|
SectionConfig sc = itemInfo.MyParent.MyConfig as SectionConfig;
|
||||||
|
if (MyParent != null)
|
||||||
offset = (sc != null && sc.SubSection_AutoIndent == "Y") ? MyParent.XOffset
|
offset = (sc != null && sc.SubSection_AutoIndent == "Y") ? MyParent.XOffset
|
||||||
: (MyParent != null && MyParent.MyTab != null)?MyParent.MyTab.XOffset:XOffset;
|
: (MyParent.MyTab != null)?MyParent.MyTab.XOffset:XOffset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user