Memorize panel position
I use my panels on some PCs
at home, at work and to show my evolutions as friends
My problem and the position of the panel
with the script below I can position it where I want
but it happens that if the slide for 21-inch full-hd screens is not good for 27-inch screens or 17-inch notebooks
You can create a button to memorize the panel position
so once put at the point where I need to memorize the position
and I do not have to move it anymore.
Thanks again for everything you do for me and for others.
win = new Window("dialog", "test");
win.orientation = "column";
FC = win.add("group");
baton22 = FC.add("group");
Res = FC.add("button", undefined, "Memory position panel");
Res.onClick = function () {
}
closeBtn = FC.add("button", undefined, "ok");
closeBtn.onClose = function () {
win.close();
};
// position panel
win.onShow = function(){
var ww = win.bounds.width;
var hh = win.bounds.height;
win.bounds.x = 1000;
win.bounds.y = 500;
win.bounds.width = ww;
win.bounds.height = hh;
}
// end
win.show();