Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simulate selecting a menu item
Message
De
28/11/2005 14:15:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01072427
Message ID:
01072561
Vues:
11
>>>Does anyone know if it is possible to either get the code behind a menu item (so that it can be run from code without the item actually being selected by the user) or to simulate the pressing of a menu item?
>>>Many thanks
>>>Caroline
>>
>>The best choice is to have the menu call an outside program that you can call from elsewhere, as well.
>>
>>If you mean one of the built-in menu items, check out SYS(1500).
>>
>>Tamar
>
>Tamar,
>Sorry I didn't make myself very clear.
>My menu option does call an external program with a parameter. However the menu items are previously made up on the fly, so is there a way to access the menu call and it's parameter?
>Thanks
>Caroline

So you're generating the menu from some metadata somewhere? Are you using GENMENU? If so, maybe you could use a GenMenuX driver to add a hook to give you what you need. In particular, the ON EXIT BAR command gives you something to hook into.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform