Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simulate selecting a menu item
Message
From
28/11/2005 14:15:53
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01072427
Message ID:
01072561
Views:
12
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform