Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu is disabled ... then enabled after opening subform?
Message
De
30/10/1998 19:30:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Menu is disabled ... then enabled after opening subform?
Divers
Thread ID:
00153108
Message ID:
00153108
Vues:
52
The menu is disabled when my browse form fist opens. But if I press ENTER to open an edit window, then immediately close the edit window, the menu is enabled (?)

The menu is created in a custom method "oBrowseForm.InitTBMenu". This is called from the PAINT method (per a previous suggestion on the UT) like this:
    *-------------------------------------------------
    PROCEDURE PAINT
        IF ! THISFORM.lMenuDone
            SET SYSMENU TO
            THISFORM.InitTBMenu
            THISFORM.lMenuDone = .T.
        ENDIF
    ENDPROC
The edit window SETs MENU TO because I don't need Add / Change / Delete in Edit mode. When control passes back to the browse form, lMenuDone is set to .F. and the menu is re-created... THIS TIME IS ENABLED?????

What am I missing here?

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform