![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2007
Posts: 212
Thanks: 0
Thanked 3 times in 3 posts
|
I know this is not supported, the question is to any user who work with the context menu.
I have a working indicator in 6.5 , but the code break in nt7. the problem is this line : int event1 = ChartControl.ContextMenu.MenuItems.Add(0, menuItem1); it throw an exception ("Object reference not set to an instance of an object.") |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
A word of warning: messing with the context menu could cause issues in NT e.g. as NT disables/enables menu items based on index.
Dierk
NinjaTrader Customer Service |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| why is the "strategies" menu item in pop up menu disabled? | clearpicks | Strategy Development | 0 | 06-21-2009 04:39 PM |
| Possible to use [Category("Parameters")] attribute to make a 10-item combobox appear? | ChiTrader2000 | Strategy Development | 2 | 03-22-2009 04:34 PM |
| Please Add a Close All and Save All menu item under File->Workspaces | pkinoc | Suggestions And Feedback | 1 | 06-14-2008 02:32 PM |
| not getting filled on market replay of news item | jorel | SuperDOM and other Order Entry Windows | 2 | 10-08-2007 06:34 AM |
| Log file item | BradB | Miscellaneous Support | 1 | 01-25-2007 01:11 AM |