Jump to content
Software FX Community

Adding to the Context Menu


Recommended Posts

Each context menu is represented by a command ID, the command IDs for

context menus are in the form: CommandID.ContextMenu*.

The following code adds the 2D/3D command to the Context Menu that appears

when the background of the chart is clicked:

Command cmdBackground = chart1.Commands[(int) CommandID.ContextMenuBack];

cmdBackground.InsertSubCommands(1,0);

cmdBackground.SubCommandID[0] = (int) CommandID.Show3D;

--

FP

Software FX, Inc.

Link to post
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.

Guest
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.

Loading...
×
×
  • Create New...