Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable menu and Can not quit VFP
Message
 
 
To
01/06/1998 03:03:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00103540
Message ID:
00103544
Views:
12
>1st problem :
>
>I use menu wizard to create the menu, the problem is how to disable one of the menus, If I run some of the program ??

You can use SKIP FOR option of the menu bar
or use SET SKIP OF BAR 2 OF menuname commands.

>
>2nd Problem :
>
>when I click 'X' sign,I can not quit the program, the message will come out "Can not quit visual foxpro", what should I do ?
>
>the main program as below :
>
>Set exclusive off
>Set talk off
>Set status off
>Set scoreboard off
>Set century on
>Set safe off
>Set escape off
>Set console off
>Set default to C:\PIS
>_SCREEN.WindowState=2
>_SCREEN.Caption='Production Information System'
>_SCREEN.Controlbox=.t.
>_SCREEN.ClipControls=.f.
>_SCREEN.Closable=.f.
>DO FORM C:\PIS\PISLOGO
>DO C:\PIS\PISMENU.MPX
>READ EVENT
>CLOSE ALL
>CLEAR EVENT
>
>thanks and regards
>Winan

Add this to your main program:

ON SHUTDOWN DO exitproc

Then create Exitproc.prg:
** exitproc.prg
CLOSE ALL
blah..blah..
CLEAR EVENT
ON SHUTDOWN

Your CLEAR EVENT on your main program seems useless because it was issued after READ EVENTS. CLEAR EVENT is a command to terminate READ EVENTS.


HTH
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform