Link to home
Start Free TrialLog in
Avatar of amkel
amkel

asked on

Dynamic menu functionality

This may be out there, but I have an MFC application that exposes an automation interface and I would like to be able to expose dynamic menu functionality.  What I mean by that, is I would like users to be able to be able to setup an automation script to be executed on that application and associate it with a menu on the app.  Similar to the "User defined tools" that can be setup on the "Tools" menu of Developer Studio.  Can an automation script be run on itself?  Can it be saved in a file and be executed by a menu selection?  This would really be cool.
Thanks,
Anne
Avatar of plaroche
plaroche

Is your question to know how to code a dynamic menu or is it how to do an automation script execution from a menu command?
If it's the former I can help, I've done a Layout which works like the Window menu, I could post sample code depending on what really is your question.
Yes, it is possible, but you will need to design your application and expose the right objects to make this work. Let's say that you expose a CustomizeMenu object. As long as you provide enough methods to manipulate the menu items, there isn't any problem with this.
Avatar of amkel

ASKER

How do I run automation on myself?  Assuming I reserve a couple of menus for user defined operations.  I would want each user to be able to automate operation by associating serveral automation commands with one menu operation.  Does this make sense?
Thank you,
Anne
ASKER CERTIFIED SOLUTION
Avatar of Tommy Hui
Tommy Hui

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial