Check out the special deal below:

More Deals!


Click here to learn more and make more!


Check out the AllAdvantage FAQ!

Get paid to surf. Make money off the Internet instead of the other way around.

Created on: July 8, 1997
How do I enable and then disable an entire menu group?


I need to know if it's possible to enable/disable a whole menu. I have in my menubar, Game, Options, Help, and Cheater's menu. The player has to enter a password via the password system you made, and if the password is right, it will activate the whole cheater's menu. (The cheater's menu is available only if you have the password.)

Chris M Perry
psychosoft@juno.com



I've included the source code for you to download which should help with your understanding.
cmenu.zip (4 KB): Download Click & Create source code for Registration System.


Click & Create's menu system is rather limited in it's scope. I haven't found a way to disable a top-level menu-item if it has anything below it. For example the top-level menu-item Help has About below. I can disable and enable the About menu-item but not the Help menu-item. Click & Create doesn't allow menu-item to be added or removed at run-time so that eliminates a lot of options right there. Also there seems to be a bug in Click & Create that will not allow you to select a grayed out menu-item in the Event Editor. So if you add a menu-item in the Menu Editor and set it to grayed then you will not be able to see it in the Event Editor so you can Enable it. It will always be gray if you do it this way. You must programmatically set it to grayed out if you want to be able to change it. So if want you wanted to do was have a Cheater's Menu that the user could look into to see what is there until they entered a password I can't think of a way to do this except for having two applications with different menus. Out of the question for must uses. It is possible to enable and disable the menu items. It just isn't possible to hide them. You can look at the source code above to see exactly how to do this.

This page and all of its contents are Copyright 1997-98 by Christopher Jay Craft.