NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 12-05-2009, 05:06 PM   #1
PrTester
Senior Member
 
Join Date: Mar 2007
Posts: 212
Thanks: 0
Thanked 3 times in 3 posts
Default ContextMenu Item

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.")
PrTester is offline  
Old 12-06-2009, 04:44 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

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.
NinjaTrader_Dierk is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 06:33 AM.