Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LaunchToolBar
Message
De
06/09/2002 15:59:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
Divers
Thread ID:
00697693
Message ID:
00697747
Vues:
18
Ivan:

Hey man, your obsessed with menus ! <bg>

>How would I be able to let the user create buttons on the Launch Toolbar as they wish, from the menu options ?

Not really thought about this too much but I can only assume that you mean hitting a menu option whose sole purpose is to add a button to the tool bar? If so, you could have the menu option call a method that gets a reference to the tool bar (which is just a specialised form class), and use its addobject() method to add a specified button at runtime.

However, doing this from a menu would be quite restrictive. I would have thought that if you wanted this as an option, you might be better creating a form based utility that will allow you to specify different buttons from a "button pool" for a corresponding menu option. Also, you will have to be able to specify the button's cAction value at run time too, so that the button can be coupled with its execution target. This would be better data-driven.

Wouldn't it be easier for you to simply create the buttons at design time and stop making your life hard? You must now have way too much time on your hands <bg>. Go surfing or something.

HTH
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform