Jump to content
Software FX Community

Adding to the Context Menu


User (Legacy)

Recommended Posts

Posted

How do I add items to the ContextMenu displayed by ChartFx ?

I've successfully added commands to a Toolbar as per the instructions in the

help, however I haven't find any info on how to add a command to the Chart's

ContextMenu.

TIA

Michael

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...