Yes, I know about WPF but this older approach is, for me at least, an easier approach, and
it's working fine. But since the strategy is started by, and associated with a NinjaTrader "host"
Chart, and I'm wanting to use the Chart as part of the interaction...
I'm wondering how I can force keyboard focus to the Chart; and then, of course, I can take it
back again. So it doesn't sound too difficult; so what would be the most reliable way for my
Strategy to ask its Chart to request focus.
I mean, I guess I could hack in some Auto Hotkey Script which my Winforms app could invoke
to cause focus to be shifted to the Ninja Form, in a specific location on the screen. That's a
hack that I could easily use, but maybe an easier solution?
Obviously, to get Cntl key up/down states, and Mouse Clicks, the Chart must have focus. I toyed
with the idea of doing my own simple chart, which would eliminate this issue; but I'd like to use
the NinjaTrader Chart's great features, as part of the overall interactive solution.
[edit] I do have this little DLL I once wrote, which can programmatically
simulate click anywhere on the desktop; so I could give focus on the chart
in that way as well...
Thank you !
Comment