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 > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 12-01-2010, 09:39 AM   #1
Mindset
Senior Member
 
Join Date: Mar 2008
Location: UK West Sussex
Posts: 665
Thanks: 9
Thanked 9 times in 7 posts
Default Help from Advanced programmers

How can I tell a control to be active ONLY when the chart itself is active?
Is this actually possible in NT?

This compiles but does not seem to work correctly

Code:
 if(  ChartControl.ParentForm ==  ChartControl.ActiveControl  )
Last edited by Mindset; 12-01-2010 at 09:41 AM. Reason: amended code line
Mindset is offline  
Reply With Quote
Old 12-01-2010, 09:43 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Mindset,

There aren't supported properties for this but hopefully some of our community members can offer input in this area.
NinjaTrader_RyanM 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
Traders vs Programmers jupiejupe Suggestions And Feedback 9 11-25-2010 01:17 PM
Advanced C# Programming Area for FELLOW PROGRAMMERS... funk101 Suggestions And Feedback 3 04-29-2009 03:11 PM
Why Pay programmers? pjimmyinahouse Strategy Development 11 07-11-2008 04:46 PM
Any Ninja Programmers abikambic Strategy Development 2 01-28-2008 03:08 PM
Thanks Programmers one and all Bogan7 Suggestions And Feedback 1 08-23-2007 07:00 AM


All times are GMT -6. The time now is 04:28 AM.