Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
In Form
Message
 
À
12/11/2002 08:23:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Divers
Thread ID:
00721509
Message ID:
00721559
Vues:
9
>Hoe can I display menus in Forms ?
>
>Silvio

For pop ups
DEFINE POPUP popMyPopMenu in Window MyFormName MARGIN RELATIVE;
                  shortcut COLOR SCHEME 2
DEFINE BAR 3 OF popMyPopMenu PROMPT 'E\<xit' skip for .f.
ON SELECTION bar 3 of popMyPopMenu do exitMyProgram with oform
To show this menu, in your form's or control's mousedown for a right button (thats the way I do it!), this code will open your pop up:
ACTIVATE popup popMyPopMenu at 5,5
DEACTIVATE MENU popMyPopMenu
Note the "at 5,5" - this positions your menu on the form - but it's not scaled to pels or pixels. Depending on form width , a row posistion of 5 could place it on bottom of the form.

This is a pop up menu - there is also a form menu. Come back when you're ready to do work with that.
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform