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 > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 07-21-2012, 09:04 AM   #1
tonynt
Senior Member
 
Join Date: Jun 2009
Posts: 740
Thanks: 19
Thanked 14 times in 9 posts
Default ToolBar Buttons

Hello,

can anyone please help me to get the names of the buttons within "btnDraw". Thanks to this great forum I can add toolbars and buttons like "btnPeriod" or "btnDataBox" but I couldnīt find untill now how to add "Snap Mode" and "Stay In Draw Mode".

I know that eg instruments is "btnInstrument" or that dataseries is "btnDataSeries" but what is

snapmode = ???
stay in drawmode = ???


Thanks in advance.
Tony
Last edited by tonynt; 07-23-2012 at 06:31 AM.
tonynt is offline  
Reply With Quote
Old 08-29-2012, 04:42 PM   #2
CodeButterfly
Junior Member
 
Join Date: Aug 2012
Posts: 8
Thanks: 0
Thanked 6 times in 4 posts
Default

I believe snapmode = "mnuSnapMode" and stay in drawmode="mnuStayInDrawMode"
CodeButterfly is offline  
Reply With Quote
The following 2 users say thank you to CodeButterfly for this post:
Old 03-26-2013, 09:55 PM   #3
neoikon
Senior Member
 
Join Date: Oct 2008
Location: Austin, TX
Posts: 119
Thanks: 44
Thanked 5 times in 4 posts
Default

I can access the menu item, but does anyone know how to determine if it is "enabled" or not? In other words, if it is in "stay in draw mode" or not?

EDIT: It seems that System.Windows.Forms.ToolStripMenuItem should have a "Checked" property, but it doesn't. At least in .NET Framework 4.0+. I tried adding reference to v4.0 of System.Window.Forms.dll and that didn't seem to allow accessing "Checked". Ideas?

Thanks!
Daniel
Last edited by neoikon; 03-26-2013 at 10:42 PM.
neoikon is offline  
Reply With Quote
Reply

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
Code samples for integrating buttons on Indicator Toolbar Turtle Trader Indicator Development 2 06-19-2012 09:14 AM
Toolbar Buttons indicator omololu General Programming 10 10-26-2011 09:52 AM
Toolbar Buttons alfa123 NinjaScript File Sharing Discussion 25 09-27-2011 07:17 AM
Adding buttons to chart's toolbar grose General Programming 5 04-22-2009 12:48 PM
toolbar sub5mango Charting 4 04-15-2009 10:54 AM


All times are GMT -6. The time now is 10:44 AM.