Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menus & Toolbars
Message
De
08/09/1997 12:15:18
 
 
À
08/09/1997 12:06:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00048971
Message ID:
00048974
Vues:
45
>I'm a bit confused on the menu/toolbar concept.
>
>Can anyone help me get a SIMPLE sample project file containing all files necessary which includes the creation and execution of a 1) menu and 2) a toolbar.
>
>I need to know how to create a menu withOUT VFP adding its own items (such as "project" or "format"). I also need to have a toolbar that is docked and NOT "un-dockable" from the start of the program. I have a main.prg file I'd like executed at the beginning of the program, but also would like the menu and toolbar to be set up when the program is run.
>
>Anything would be appreciated -- something simple, but containing an element of each ( 1) .prg file setting up some global variables, etc. which runs from the start, and then sets up the 2) menu, and 3) toolbar (complete with icons)).
>
>TIA!
>
>
>Mark
>
>
>mark@remarkable-systems.com

Sorry, but this is brief reply:
1. To have Menu without VFP items use following:
Menu Designer/View/General Options/Replace.
2. To run menu form main.prg you issue:
do mainmenu.mpr
3. To create toolbar you should create toolbar class and then instanciate toolbar object from this class (you could check Developer Guide for more explanation). Toolbar object has Movable property which will prevent 'un-docking', if =.F.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform