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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user