Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding the menu
Message
 
À
07/10/1999 13:15:34
Wayne Thomas
Cleansuite Software Inc
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Divers
Thread ID:
00273346
Message ID:
00273886
Vues:
17
>Thanks Nick for the suggestion on SET SYSMENU ON/OFF. If I SET SYSMENU OFF then the menu is not available at all. Hitting F10 or Alt does nothing. For a number of reasons I don't think HIDE MENU will work either.
>
>Here is a simple program that demonstrates the problem.
>
>SET SYSMENU ON
>waithere = " "
>@ 2, 2 GET waithere
>READ
>
>If you run it in FPD 2.6 the menu immediately disappears. If you hit F10 or Alt the menu becomes visible. Hit Esc and the menu disappears again. Perfect!
>
>If you run the program in VFP 5.0a the menu does not disappear. I want it to be "hidden" until the user presses F10 or Alt.
>
>I would sure like to have this feature but maybe it just isn't possible in Visual Fox.

Anything is possible in Visual Fox. :)
If you really want to do this :), put ON KEY LABEL F10 DO onF10 in your Form.Init(), add the onF10.PRG to your project and it will work.

* onF10.prg
lcState = SET("SYSMENU")
IF lcState = "ON"
SET SYSMENU OFF
ELSE
SET SYSMENU ON
ENDIF

Actually F10 and Alt keys are reserved by Windows, and you better use another key.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform