This commit is contained in:
Kathy Ruffing 2009-05-21 13:28:25 +00:00
parent 912320affb
commit f0f719b9f6

View File

@ -194,7 +194,7 @@ namespace Volian.Controls.Library
break; break;
case 2: // Step case 2: // Step
// if Table then determine width and location based upon it's parent's location // if Table then determine width and location based upon it's parent's location
if (_MyStepData.Type == "TABLE" || _MyStepData.ParentType == "TABLE") if (_MyStepData.Type == "Table" || _MyStepData.ParentType == "Table")
{ {
_MyStepRTB.Font = _MyStepData.Font.WindowsFont; _MyStepRTB.Font = _MyStepData.Font.WindowsFont;
ItemWidth = (int)TableWidth(_MyStepRTB.Font, _MyItemInfo.MyContent.Text); ItemWidth = (int)TableWidth(_MyStepRTB.Font, _MyItemInfo.MyContent.Text);
@ -973,6 +973,15 @@ namespace Volian.Controls.Library
public void AddSiblingAfter() public void AddSiblingAfter()
{ {
ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter(""); ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter("");
DoAddSiblingAfter(newItemInfo);
}
public void AddSiblingAfter(int? type)
{
ItemInfo newItemInfo = MyItemInfo.InsertSiblingAfter("","",type);
DoAddSiblingAfter(newItemInfo);
}
private void DoAddSiblingAfter(ItemInfo newItemInfo)
{
StepItem newStepItem = null; StepItem newStepItem = null;
switch (_MyChildRelation) switch (_MyChildRelation)
{ {