|
QuantShare
2021-02-16 09:48:56
0
|
|
You can create a custom script to do that and assign a shortcut to it using the "Add Shortcut" button after selecting "Divers -> List of shortcuts".
The script should be created using "Tools -> Script Editor".
Something like this:
if(!Global.ContainsVariable("layout_index"))
{
Global.SetVariable("layout_index", 0);
}
int index = (int)Global.GetVariable("layout_index");
string[] layouts = App.Main.GetLayoutNames();
App.Main.UpdateChartLayout(Charts.GetSelectedChartId(), layouts[index]);
index = index - 1;
if(index < 0)
{
index = layouts.Length - 1;
}
Global.SetVariable("layout_index", index);
|
|