resizing a window

When I size the (main) application window with application.setWindowSize to a 30 pixels higher window I noticed that the ‘information’ bar at the bottom of the window stays where it is (os x and Linux both rc10). When I resize manually it moves to it’s ‘normal’ position.

Could this be related to my reported issue before about the anchors not working properly on a dialog?

And, more or less related: when I do that resize upon onShowForm (higher) and onHideForm (lower) I noticed that when I do a showPrintPreview from that window the onHideForm is not called but the onShowForm is. The result is a ‘growing’ window…

i made a button that has a action that does this:

var h = application.getWindowHeight();
var w = application.getWindowWidth();
application.setWindowSize(w,h+30)

then on windows the window grows perfectly when i press the button.

At youre place does the status bar grow? instead of the form itself?

I have to checkout the printpreview onhide/onshow things.

But Are you really constantly changing the size of the window?
Horrible if i may say. I personally want to remove the setWindowSize all together if it was me. i find it horrible that the program is constantly setting the sizes. It should only set the size of my window onces (the very first time the solution is started, so not when the solution is started the second time!!)
Because after that i have set the size .. And i don’t want the program to change that constantly.

Johan, I agree more ore less. Will give your remarks some consideration. The reason I do this is the fact that I put a toolbar on top for only one or two windows…

What I do to resize a window is the same as you suggest. The window grows but it is only the information below that remains in it’s place like the anchors are not set. And this is the same as with my other controls.

BTW it is the standard Servoy info bar on the bottom of the window…

Can you send me a screen dump/picture of what does happen?

Johan, here it is…

hmm that has to be an apple thing.
will check it out.