fixed the problem where the last item in the step list was not scrolling all the way into view

logic to change background color if the item contains an annotation
This commit is contained in:
2010-01-11 14:05:31 +00:00
parent bf8a0560e7
commit cfb58493fa
5 changed files with 72 additions and 4 deletions

View File

@@ -163,10 +163,15 @@ namespace Volian.Controls.Library
if (value != null)
{
RTBFillIn(!ViewRTB);
SetBackColor();
//ViewRTB = MyStepItem.MyStepPanel.PanelViewEditMode == E_ViewMode.View;
}
}
}
public void SetBackColor()
{
BackColor = _MyItemInfo.ItemAnnotationCount == 0 ? MyStepItem.MyStepPanel.InactiveColor : Color.FromArgb(255, 255, 128);
}
private string _origRTF;
public void RTBFillIn(bool edit)
{
@@ -1801,7 +1806,7 @@ namespace Volian.Controls.Library
private RichTextBoxFinds _FindOptions = RichTextBoxFinds.None;
public void FindText(string str, bool caseSensitive, bool matchWholeWord, bool reverse)
{
RTF savRTF = new RTF();
StepRTB savRTF = new RTF();
int startpos = SelectionStart + SelectionLength;
savRTF.Text = this.Text;