Context menu for Chart Editor object
Posted: Tue Mar 02, 2010 8:21 am
Hi,
I've tried to implement a ContextMenuStrip for the Chart Editor, but it doesn't get enabled (strip is not displayed when right-click).
I've used the same-alike implementation (standard .net) I've done for the Chart object in another module of the application, where it works.
Thanks for any hints! The code follows:
I've tried to implement a ContextMenuStrip for the Chart Editor, but it doesn't get enabled (strip is not displayed when right-click).
I've used the same-alike implementation (standard .net) I've done for the Chart object in another module of the application, where it works.
Thanks for any hints! The code follows:
Code: Select all
editChart = new TChart();
editor1 = new Steema.TeeChart.Editors.ChartEditor(editChart.Chart);
// .......
ToolStripMenuItem stripAfficheCharte = new ToolStripMenuItem("Action here");
contextMenu = new ContextMenuStrip();
contextMenu.Items.AddRange(new ToolStripItem[] { stripAfficheCharte });
stripAfficheCharte.Click += new System.EventHandler(stripAfficheCharte_Click);
editor1.ContextMenuStrip = contextMenu;