Disabling menus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
pservedio
Advanced
Advanced
Posts: 10
Joined: Tue Sep 19, 2006 7:44 pm

Disabling menus

Post by pservedio »

In doing numerous searches, I can see how one disables a menu item using mm_changeItemProprty.

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();")
}
...
What I'd like to do is either
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?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

No, the disable isn't a property of the menus but there is a demo for changing menu properties and one of them is the alwaysvisible, perhaps that is something you can use

http://support.milonic.com/demos/change ... /index.htm

There is a link toward the bottom to Other Demos which has a menu with different properties being turned on or off. For some reason the screenposition property change is not working, but the rest do and one is the alwaysvisible.

Sorry I can't be more help but these are functions that were created by Kevin who hasn't been able to help out in a while, and no one else does functions.

Ruth
Post Reply