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:
@@ -113,7 +113,8 @@ namespace Volian.Controls.Library
|
||||
private void lbxBookMarks_Click(object sender, EventArgs e)
|
||||
{
|
||||
MostRecentItem itm = lbxBookMarks.SelectedValue as MostRecentItem;
|
||||
MyDisplayTabControl.OpenItem(itm.MyItemInfo);
|
||||
if(itm != null)
|
||||
MyDisplayTabControl.OpenItem(itm.MyItemInfo);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user