Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple main.prg
Message
 
 
To
28/06/1998 06:20:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00112256
Message ID:
00112303
Views:
16
Ivan,

do menu MyMenu.spr && show menu
do form MyMenuForm && show main window
read events && enter event loop

In the MyMenuForm.Unload() event and in your File/Exit menu item put CLEAR EVENTS

>In 2.6 I used to start my application running a main screen, defined as a desktop with a hidden dummy button, so this screen doesn't close until I demand it with "CLEAR READ" command somewhere in menu. At the end of setup I also run my basic menu and that's all I need for the first step when the application starts. OK, I can put some icons on this main screen (desktop), it can be maximized, there could be some graphical pictures as advertisments etc.
>
>I know forms in VFP is not exactly what it was screens in 2.6. So - what is the simplest way to create main window, let' say - blank main window - with a menu on the top, waiting for the user's action?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform