ubaid.tariq Posted July 2, 2008 Report Share Posted July 2, 2008 Hi ... i want to get parent command id of a user defined command. Suppose i have added a command "Sorting" in context menu which has 2 sub commands "Sort By X-Axis" and "Sort By Y-Axis". Now i have 2 other sub-commands say "Asc" and "Des" in both "Sort By X-Axis" and "Sort By Y-Axis" and i click on any of it, How would i know whther i have come through "Sort By X-Axis" or "Sort By Y-Axis"?? Is there any way of getting the parent command id ?? or is there any event triggered when subcommands of command gets visible so that i can store its command id to some variable ?? Regards, Ubaid Tariq Quote Link to comment Share on other sites More sharing options...
Frank Posted July 2, 2008 Report Share Posted July 2, 2008 No. You will have to create separate commands in order to know where the command is coming from. There is no API to find the parent command of a command that's currently being executed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.