I have designed a menu 'MAINMENU' and define the ALT key in [keypress] in
menu designer.
This menu will be called from a form 'MAIN',
The ALT key works while in the design time,
after that, I compile it to build an exe file, the ALT key doesn't work.

Inside the initial main.prg, I have several environment settings
and at last, there is as
do form MAIN
read events

and in the INIT event of form MAIN, the content is
do mainmenu.mpr with thisform, .t.

Below are some setting of the form MAIN
ShowWindow - 2-As Top-Level Form
WindowType - 0-Modeless
MDI Form - .f.

Please, can anyone give me a hand on this issue.
thanks lot
Edward

Re: [ALT] key cannot open menu while running in EXE by Stefan

Stefan
Thu Feb 05 06:28:11 CST 2004

Hi Tom,
In Vfp you don't need an endless loop around the
Read Events command.


-Stefan

"TomCS" <anonymous@discussions.microsoft.com> schrieb im Newsbeitrag
news:9B2723C7-18F2-4543-836B-F05988E9790B@microsoft.com...
> Trye something like this:
>
> PUBLIC glExit
> glExit = .F.
>
> DO MainMenu.mpr
> DO WHILE .T.
> READ EVENTS
> IF glExit && Somewhere in your exit routine assign
glExit = .T.
> EXIT
> ENDIF
> ENDDO
>