I'm creating a dynamic new window() with x amount of tabs and charts (other stuff). Is there anything like Eval(dt << Get Script) that will recreate the window exactly? Keeping all buttons functions fully intact and knowing where I was effectively.
Right now if I do it, I can't even get it to create using the eval(nw<<Get Script).
Edit* Just to be clear. I'm trying to recreate a window without knowing exactly what's inside of it. This is the example I came up with to show what I'm talking about:
Names default to here(14);
cwd = convert file path("./");
New window("Test",
Hlistbox(
tb = tabbox(
"Tab1",
Panelbox("Tab 1",
lb = listbox(filesindirectory("$SAMPLE_DATA")),
buttonbox("Open",
file = (lb << Get Selected)[1];
dt = Open("$SAMPLE_DATA\"||file)
)
),
)
),
Hlistbox(
Buttonbox("Back", tb<<Set Selected((tb << Get Selected)-1)),
Buttonbox("Next",
newtab = Eval(other_boxes[(tb<<Get Selected)]);
tb<<Append("Tab", newtab);
tb<<Set Selected((tb<<GetSelected)+1)
)
)
);
other_boxes = {
PanelBox("Blank, because ... reasons?"),
PanelBox("Column Names",
Collistbox(dt, all)
)
};
It seems the general concensus is no. So I'll just mark it as answered.