I'm trying to include the code:
TabControlManager.SetIsSimulation(tc, true);
inside the AddOn Framework that is a example posted at https://ninjatrader.com/support/help...t_overview.htm
but this included code does not change the background color for Sim/Real Accounts.
Would someone help me?
Here is the complete code
public AddOnFrameworkWindow() { // set Caption property (not Title), since Title is managed internally to properly combine selected Tab Header and Caption for display in the windows taskbar // This is the name displayed in the top-left of the window Caption = "AddOn Framework"; // Set the default dimensions of the window Width = 1085; Height = 900; // TabControl should be created for window content if tab features are wanted TabControl tc = new TabControl(); // Attached properties defined in TabControlManager class should be set to achieve tab moving, adding/removing tabs TabControlManager.SetIsMovable(tc, true); TabControlManager.SetCanAddTabs(tc, true); TabControlManager.SetCanRemoveTabs(tc, true); TabControlManager.SetIsSimulation(tc, true); // if ability to add new tabs is desired, TabControl has to have attached property "Factory" set. TabControlManager.SetFactory(tc, new AddOnFrameworkWindowFactory()); Content = tc; /* In order to have link buttons functionality, tab control items must be derived from Tools.NTTabPage They can be added using extention method AddNTTabPage(NTTabPage page) */ tc.AddNTTabPage(new AddOnFrameworkTab()); // WorkspaceOptions property must be set Loaded += (o, e) => { if (WorkspaceOptions == null) WorkspaceOptions = new WorkspaceOptions("AddOnFramework-" + Guid.NewGuid().ToString("N"), this); }; }
Comment