Ways for Implementing the Code
Hi,
Here is a sample code syntax
// For attaching custom panels to Protrader's menu // Zero for int would just make the custom panel fall in alphabetical order MainWindow.AddToMenu(enum Account, int location); // Attaching to AlgoStudios AlgoStudio.AddToMenu(enum File, int location); // If it has sub menus AlgoStudio.AddToMenu(enum File, int location1, int location2);
// To hide menu MainWindow.HideFromMenu(enum Positions, int location); // Add buttons to Position's panel // The coordinates start from the top left using pixels. Button gadget; MainWindow.AddGadget(enum Position, enum Panel, Button gadget, int x, int y, bool resize); // To embed custom panel to the chart, for instance, a chart trader Panel panel; MainWindow.AddGadget(enum Chart, enum Panel, Panel panel, int x, int y, bool resize);
Okay, for the objects that must be passed into the AddGadget, I don't know yet how to link a gadget that was already created to this object. I will have to get back to you on this one. I created a request for these things here.
Thanks for engineering Protrader
No replies yet
Join PTMC community to post your replies on forum