The default instrument list on the left of chart have only 'Defaults List' instruments. I'm working on one indicator to show one new Dropdown with All Instrument Lists and, on click, fill the default instrument list with the instruments..
I'm in the last step. I have one new Intruments Lists Dropdown working, and i fill the default instrument list ok. But, when i click into one item of default instrument list, anythink occurs.
May be The items object (ToolStripDropDownItem) of default item have attached one event on click.
Ok, i don't remove items, for test, i change only 'Text' property to one new Instrument Text. But on click, the chart try to reload, but seems it's only find Item Text click on the 'Default list'...
¿Any idea?
Here two indicators.
The first one (jaToolBarInstrumentList), i show two new dropdown lists, one with instrument lists and another with instruments of item selected in the first dropdown. But i don't know how to change chart instrument on click...
The second one (jaToolBarInstrumentListTest2), i try to use the default dropdown list named ('btnInstrument):
ddInstruments=(ToolStripDropDownButton) myToolBar.Items.Find("btnInstrument",false)[0];
For test, i set the 'text' property of the second item in the list to: "AAPL Default", and add one new last instrument with this Text too.
The last item never works. And the second item changed, only works if 'AAPL' instrument it's in the Default List.
May be, this declaration in the Class CharControl can give us an idea:
internal event InstrumentNotifyEventHandler InstrumentSelected;
Thank you to Richard Todd from www.movethemarkets.com for his ToolBarExample, and to zweistein for his Wilson.ORMapper.GetReader sample.
Of course, all in this post it's indocumented and can to hang NT
Comment