The main menu of my application uses 1-9 as access keys for the
selections.

For a variety of reasons, all the forms in this app are modal.
Nevertheless, in the forms, the menu access keys still (attempt to)
function.

[This comes up because I use the same numbers as access keys in the
form. Generally, the form keys override the menu keys. However, if
one of the contols in the form is disabled, the menu key of the same
number becomes active again.]

Is there a way to "turn them off", or otherwise temporarily disable
the menu bar?

Thanks

Re: How to clear access keys by Dan

Dan
Thu Apr 10 12:52:49 CDT 2008

Unless you've gone out of your way to prevent it, the system menu should be
disabled when a modal form is present.

Are you mixing terminology or something? Can you explain what you mean by
access keys? The accelerators for the system menu all use ALT.

Dan

George Smith wrote:
> The main menu of my application uses 1-9 as access keys for the
> selections.
>
> For a variety of reasons, all the forms in this app are modal.
> Nevertheless, in the forms, the menu access keys still (attempt to)
> function.
>
> [This comes up because I use the same numbers as access keys in the
> form. Generally, the form keys override the menu keys. However, if
> one of the contols in the form is disabled, the menu key of the same
> number becomes active again.]
>
> Is there a way to "turn them off", or otherwise temporarily disable
> the menu bar?
>
> Thanks



Re: How to clear access keys by George

George
Thu Apr 10 13:51:54 CDT 2008

Thanks for asking, Dan.

I am not doing anything special to the menu.

I am referring to ALT+ as access keys (this seems to be the Foxpro
term.) I

The top level menu is not deactivated by the form. If the menu item
has a dropdown menu associated with it, that menu is deactivated, but
not the top level. Two top level selections are "stand alone", and if
their access keys are pressed while in the form they activate and pop
up my password screen (the first action in each selection.)

On the off chance it is relevent, I'll mention that these access keys
are being activated with KEYBOARD commands associated with the
function keys. But I doubt that matters as I can also mouse click on
them.

G

Re: How to clear access keys by Dan

Dan
Thu Apr 10 14:05:02 CDT 2008

Have you given those menu items a SKIP FOR setting? Something like
!Empty(Wontop()) might do it for you.

Dan

George Smith wrote:
> Thanks for asking, Dan.
>
> I am not doing anything special to the menu.
>
> I am referring to ALT+ as access keys (this seems to be the Foxpro
> term.) I
>
> The top level menu is not deactivated by the form. If the menu item
> has a dropdown menu associated with it, that menu is deactivated, but
> not the top level. Two top level selections are "stand alone", and if
> their access keys are pressed while in the form they activate and pop
> up my password screen (the first action in each selection.)
>
> On the off chance it is relevent, I'll mention that these access keys
> are being activated with KEYBOARD commands associated with the
> function keys. But I doubt that matters as I can also mouse click on
> them.
>
> G



Re: How to clear access keys by George

George
Fri Apr 11 00:01:07 CDT 2008

Excellent, Dan. That does the trick.

Thank you.

On Apr 10, 12:05=A0pm, "Dan Freeman" <s...@microsoft.com> wrote:
> Have you given those menu items a SKIP FOR setting? Something like
> !Empty(Wontop()) might do it for you.
>
> Dan