Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #1554 > unrolled thread

Disable Menu Sub Items

Started by"Ivar" <ivar.ekstromer000@ntlworld.com>
First post2012-08-28 05:32 +0100
Last post2012-08-28 10:18 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.basic.visual.misc


Contents

  Disable Menu Sub Items "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-08-28 05:32 +0100
    Re: Disable Menu Sub Items "Theo Tress" <rbk@online.de> - 2012-08-28 10:18 +0200

#1554 — Disable Menu Sub Items

From"Ivar" <ivar.ekstromer000@ntlworld.com>
Date2012-08-28 05:32 +0100
SubjectDisable Menu Sub Items
Message-ID<4RX_r.91305$c01.38721@fx01.am4>
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


[toc] | [next] | [standalone]


#1555

From"Theo Tress" <rbk@online.de>
Date2012-08-28 10:18 +0200
Message-ID<k1i36k$2i6$1@online.de>
In reply to#1554
> 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.

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. 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.basic.visual.misc


csiph-web