But I want to disable all menus in certain situations and there is no method apparently to disable an entire menu in a method. I looked all all menu level properties and there is no disable property.
Consider the following main menu and substyle menus:
Code: Select all
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=13;
orientation="horizontal";
style=menuStyle;
top=86;
aI("showmenu=File;text=File;");
aI("showmenu=Tools;text=Tools;");
aI("showmenu=Help;text=Help;");
}
with(milonic=new menuname("File")){
overflow="scroll";
style=subStyle;
aI("text=Export;url=javascript:swapLayers('lyr3');")
aI("text=Search;url=javascript:swapLayers('lyr2');")
aI("text=Logout;url=javascript:logout();")
}
...
a. disable all menus, and thus their items
or
b. turn all menu text gray and their items as simply as possible.
Is there a way to do this fairly easily?