Switch focus back to RTB after inserting item
This commit is contained in:
parent
e70ffda937
commit
9da4d68c7b
@ -388,7 +388,10 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
string linktxt = string.Format(@"#Link:ReferencedObject:<NewID> {0} {1}", roch.roid, _MyROFST.MyRODb.RODbID);
|
||||
// Resolve symbols and scientific notation in the RO return value
|
||||
_MyRTB.InsertRO(ConvertSymbolsAndStuff(selectedChld.value), linktxt);
|
||||
string valtxt = ConvertSymbolsAndStuff(selectedChld.value);
|
||||
_MyRTB.InsertRO(valtxt, linktxt);
|
||||
_MyRTB.Select(_MyRTB.SelectionStart + valtxt.Length + linktxt.Length, 0);
|
||||
_MyRTB.Focus();
|
||||
}
|
||||
_MyRTB.inRoAdd = false;
|
||||
}
|
||||
@ -793,6 +796,12 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
|
||||
#endregion // utils
|
||||
|
||||
private void lbROId_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: This is hard-coded to particular folders
|
||||
System.Diagnostics.Process.Start(@"C:\VE-PROMS.NET\BIN\RoEditor.EXE",@"c:\Plant\hlp\vehlp\ro " + CurROLink.ROID);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user