Discussion:
Disable Menu Sub Items
(too old to reply)
Ivar
2012-08-28 04:32:02 UTC
Permalink
Hi All.

Lets see if this can be done the easy way:
As in Ask the news group rather than figure it out myself :-)

VB6:

On a Form there is a menu bar, Each Menu Item has sub menus.
Some menu items have sub menus that are indexed, or on their own or both.
Some Sub menus have sub menus of their own.

I Would like a sub That:
When a menu Identifying Arg is passed to the sub, All Sub menus of that
Menu Item are disabled.
There would be no need to disable any sub menu's sub menu.
I should think this sub would be called from the Menu Bar's Item Click
event.

Any Takers on this?

Ivar
Theo Tress
2012-08-28 08:18:15 UTC
Permalink
Post by Ivar
When a menu Identifying Arg is passed to the sub, All Sub menus of that
Menu Item are disabled.
Hmm, where is the problem?

You can disable a menu item to avoid popup.

If you want to show the menu with all or some items disabled then you can
use the menu's click event to disable these submenu items individually.

If you disable any menu item an underlaying submenu will not popup so you
don't have to take care about disabling submenus.

Loading...