1 person found this helpful
Thanks a lot for the input.
With that command, I am very closed from perfect behaviour :
myBounds = rapidDlg.bounds;
rapidDlg.onResize = function()
rapidDlg.bounds = myBounds;
If I try dragging the window handle, the window bounds are reset to former ones. Great.
However, if i use the maximize button, the window is relocated. myBounds is modified and take values of the new bounds :-S .
The weirdest is that It works nicely for any resizing actions with a little piece of code I wrote. But the same commands in my main code fails with dealing maximisation >-(
Thanks again for your help.
So what I understood is that onResize doesn't deal very well with maximizebutton.
If I do
var myBounds = dlg.bounds;
dlg.onResize = function ()
dlg.bounds = myBound;
then maximize the window, the script seems to partially ignore "dlg.bounds = myBound;"
Window is relocated at 0,0 instead of taking former myBounds value...:-(