![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2009
Posts: 740
Thanks: 19
Thanked 14 times in 9 posts
|
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.
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Aug 2012
Posts: 8
Thanks: 0
Thanked 6 times in 4 posts
|
I believe snapmode = "mnuSnapMode" and stay in drawmode="mnuStayInDrawMode"
|
|
|
|
|
The following 2 users say thank you to CodeButterfly for this post: |
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2008
Location: Austin, TX
Posts: 119
Thanks: 44
Thanked 5 times in 4 posts
|
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.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |