This commit is contained in:
@@ -64,11 +64,11 @@ namespace AyaNovaQBI
|
|||||||
foreach (ToolStripMenuItem t in tbManager.Items)
|
foreach (ToolStripMenuItem t in tbManager.Items)
|
||||||
{
|
{
|
||||||
var menutag = t.Tag.ToString();
|
var menutag = t.Tag.ToString();
|
||||||
System.Diagnostics.Debug.WriteLine($"editField_Enter examining menu item {menutag}");
|
//System.Diagnostics.Debug.WriteLine($"editField_Enter examining menu item {menutag}");
|
||||||
if (!menutag.StartsWith("Insert"))//skip the two permanently visible ones
|
if (!menutag.StartsWith("Set"))//skip the two permanently visible ones
|
||||||
{
|
{
|
||||||
t.Visible = edittag == menutag;
|
t.Visible = edittag == menutag;
|
||||||
System.Diagnostics.Debug.WriteLine($"editField_Enter setting menu item {menutag} to visible= {t.Visible}");
|
// System.Diagnostics.Debug.WriteLine($"editField_Enter setting menu item {menutag} to visible= {t.Visible}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,7 @@ namespace AyaNovaQBI
|
|||||||
if (e.ClickedItem.Tag == null) return;//probably just a container menu item / not a special menu item
|
if (e.ClickedItem.Tag == null) return;//probably just a container menu item / not a special menu item
|
||||||
|
|
||||||
string tag = e.ClickedItem.Tag.ToString();
|
string tag = e.ClickedItem.Tag.ToString();
|
||||||
System.Diagnostics.Debug.WriteLine($"you clicked on {tag}");
|
// System.Diagnostics.Debug.WriteLine($"you clicked on {tag}");
|
||||||
if (tag.StartsWith("~"))
|
if (tag.StartsWith("~"))
|
||||||
_CurrentTextEditor.Text = _CurrentTextEditor.Text.Insert(_CurrentTextEditor.SelectionStart, tag);
|
_CurrentTextEditor.Text = _CurrentTextEditor.Text.Insert(_CurrentTextEditor.SelectionStart, tag);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user