Jump to content
Software FX Community

How to get parent command id


Recommended Posts

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 ??


Ubaid Tariq

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...