Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:38

Disabling menus


Poster: pservedio
Dated: Wednesday March 21 2007 - 0:02:37 GMT

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:
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?


Poster: Ruth
Dated: Wednesday March 21 2007 - 3:22:59 GMT

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