Update underlying data field when related object is updated.

If the selected Library Document is out-of-range throw a specific error
Don't fail if the user clicks on open space in the BookMark list
Added property to provide a right margin (RTBMargin) between the RichTextBox and the StepItem
This commit is contained in:
Rich
2010-12-16 20:42:44 +00:00
parent abd26062f6
commit 10f06a5e9c
42 changed files with 147 additions and 69 deletions

View File

@@ -372,6 +372,16 @@ namespace Volian.Controls.Library
get { return new Point(Location.X + lblTab.Left, Location.Y); }
set { Location = new Point(value.X - lblTab.Left, value.Y); }
}
private int _RTBMargin = 3;
/// <summary>
/// Margin between the StepItem and the StepRTB. Appears on the Right.
/// Will allow space to draw a Change Bar on the right side of the StepItem.
/// </summary>
public int RTBMargin
{
get { return _RTBMargin; }
set { _RTBMargin = value; }
}
/// <summary>
/// Width of the Tab and RTB
/// </summary>
@@ -380,7 +390,7 @@ namespace Volian.Controls.Library
get { return Width - lblTab.Left; }
set
{
Width = value + lblTab.Left;
Width = RTBMargin + value + lblTab.Left;
}
}
/// <summary>
@@ -430,7 +440,7 @@ namespace Volian.Controls.Library
lblTab.Width = tabString.Length * 8 * MyStepPanel.DPI / 96;// Adjust width for DPI
Invalidate();
_MyStepRTB.Left = lblTab.Left + lblTab.Width;// +2;
_MyStepRTB.Width = Width - _MyStepRTB.Left;
_MyStepRTB.Width = Width - _MyStepRTB.Left - RTBMargin;
_TabFormat = value; // tabString;
}
}