Is it possible to create controls in menus?
specificaly, i want to have a textbox or "EditControl" within the menu.
I tried this and a few variations:
code:
function OnGetScriptMenu(Location)
{
var ScriptMenu = "<ScriptMenu>";
ScriptMenu += "<MenuEntry Id=\"MnuInter\"><Control xsi:type=\"EditControl\" _ Id=\"txtInter\"><DefaultText>123</DefaultText></Control></MenuEntry>";
ScriptMenu += "<Separator/>";
ScriptMenu += "<MenuEntry Id=\"MnuAbout\">Help</MenuEntry>";
ScriptMenu += "</ScriptMenu>";
return ScriptMenu;
}
the idea is that the menu can be accessed, the value typed in, then when the focus is lost and the menu disappears, a variable is updated with the value from the text box.
and of course, the default value of the text box would be the initial value of the variable.
any ideas?