Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove default VFP menu?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
01017231
Message ID:
01017239
Vues:
42
This message has been marked as a message which has helped to the initial question of the thread.
Dmitry,

To turn off the menu:
SET SYSMENU OFF
To turn it back on:
SET SYSMENU TO DEFAULT
To resize the main window:
_Screen.Move(<values>)
OR
WITH _Screen
  .Top = value
  .Left = value
  .Height = value
  .Width = value
ENDWITH
But your form will only show in the client area of the main window unless you set it to ShowWindow = 2 - As Top Level Form. A more appropriate option is to set the form's ShowWindow to 2 and in your config.fpw file put:
SCREEN=OFF
So the main VFP window won't show at all. Then, you won't have to worry about the menu either.

HTH,
Chad

>I have a small application that consists of one form. I open it in VFP main window but I would like to remove the default VFP menu at all. I don't want any menus in this app.
>
>Also, how can I make the VFP main window to be sized equal to my form so that it looks like there is only one window?
>
>Thank you in advance for any suggestions.
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform