-
scripting: dockable panel problem
I’m trying to write a dockable script but my static text doesn’t show up.
var win = (this instanceof Panel) ? this : new Window(“palette”);
st = win.add(“statictext”);
st.text=”hello”;it works when run from the scripts menu, however. I’m just not getting it to work from the Window menu as a dockable panel.