Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using menu from modal form
Message
De
16/01/2001 16:38:16
 
 
À
16/01/2001 08:52:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00458308
Message ID:
00464423
Vues:
52
>>> How I can select my own menu item when modal form is active ? <<
>
>Add a property called lMenuDone to your modal form. This code in the form's Paint method:
>
>
>IF NOT This.lMenuDone
>   PUSH MENU _MSYSMENU
>   This.lMenuDone = .T.
>   DO MyMenu.prg
>   DO MyMenu.prg
>ENDIF
>
>
>Then you can issue a POP MENU in the form's Unload.

Marcia,

why i must run

DO MyMenu.prg

twice?

One line seems to be sufficient.
Is it possible to use vfp standard _msysmenu (e.q.standard copy, edit,paste pads) ? I do'nt want to define new menu of each modal form.

It it possible to run this code in some other event than paint (Load event)?
I haven't never used paint.
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform