User (Legacy) Posted June 19, 2003 Report Posted June 19, 2003 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
Software FX Posted June 19, 2003 Report Posted June 19, 2003 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.