Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add selections programmatically
Message
De
27/02/2008 16:10:07
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
27/02/2008 15:30:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
01296923
Message ID:
01297163
Vues:
28
>So just to make certain I am clear on the definitions, the selections that appear across the top when the menu is not in use are called PADS. Beneath those, the selections that open up other selections (the betweeners) are called popups, and the last selections in the tree are called bars. Would that be correct?

If my memory serves me well, yes :).

But then you can check the generated code for your menu (extension .spr) and see what sort of name applies to what.

>In my example File, Surveys, and Other Items are pads.
>File/Choice1 and File/Choice2 are popups.
>Surveys/Choice 1 and Surveys/Choice 2 are popups.
>Surveys/Print is a popup.
>Everything below Surveys/Print is a bar because they actually execute command or procedure code.
>Would that be correct?
>
>And would you put the additional code (to add more bars) in setup or cleanup, or doesn't it matter?

Anywhere. Doesn't really matter, the menu is equally visible from anywhere. You put the code where you need it (and where you'll be able to find it when you need it).

I've never really used startup/cleanup code, because I was using my own data driven menus since '92. Same goes for most of the genmenu.prg's capabilities, just don't know.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform