Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple main.prg
Message
 
À
28/06/1998 06:20:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00112256
Message ID:
00112365
Vues:
20
>I'm new in VFP, coming from FPD/FPW 2.6.
>
>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?


If you prefer to use SDI form, set ShowWindow property of the form to 2-As-top-level, then at INIT event issue:
DO mymainmenu.mpr WITH THIS
Your main.prg then will be like this:
DO FORM mymainform  && SDI form set to 2-as top level.
READ EVENTS
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."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform