Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can you stop the initial VFP window from popping up
Message
De
26/10/1999 13:22:16
 
 
À
26/10/1999 12:57:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00281593
Message ID:
00281612
Vues:
12
>I have as my first line of code
>
>_SCREEN.visible = .F.
>
>However, when I first run the .EXE, the normal window flashes on the screen then disappears. Likewise, when I quit the app, the window flashes again. How can I get rid of this?
>

You'll need to use a CONFIG.FPW with the line SCREEN = OFF in it, either included and built into the project, or in the startup directory, or specified using the -C command line switch.

After that, you must either use Top-Level forms, or adjust the setting of the VFP screen using the _SCREEN system variable and then doing an _SCREEN.Show() (or _VFP.Show(), or _SCREEN.Visible = .t., or any of a half-dozen different ways of handling this.)

If you leave the main VFP window hidden and do not have any top-level window running, you won't be able to visually detect that the application is running. If the main VFP screen is disabled, some internal VFP functions may not be usable without some additional workarounds (for example, print preview from the report writer.)

You may want to read the entries in the FAQ here on UT on hiding and modifying the main VFP screen for additional details.

>Thanks!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform