This commit is contained in:
parent
df775b384e
commit
4625ac41f5
@ -376,7 +376,15 @@ namespace Volian.Controls.Library
|
||||
if (MyEditItem is GridItem && (MyEditItem as GridItem).MyFlexGrid.IsRoTable)
|
||||
btnCMGoTo.Enabled = btnGoTo.Enabled = true;
|
||||
else
|
||||
btnCMGoTo.Enabled = btnGoTo.Enabled = _MyStepRTB.IsSelectionLinked(_MyStepRTB.SelectionStart, _MyStepRTB.SelectionLength);
|
||||
{
|
||||
if (_MyStepRTB.IsSelectionLinked(_MyStepRTB.SelectionStart, _MyStepRTB.SelectionLength))
|
||||
{
|
||||
// if selected text = ?, i.e. a missing/undefined destination, don't allow go to
|
||||
btnCMGoTo.Enabled = btnGoTo.Enabled = !_MyStepRTB.SelectedText.StartsWith("?");
|
||||
}
|
||||
else
|
||||
btnCMGoTo.Enabled = btnGoTo.Enabled = false;
|
||||
}
|
||||
}
|
||||
void _MyStepRTB_Leave(object sender, EventArgs e)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user