Is there a possibility to dynamicly change form height en wi

I would like to know how to change the form height en width dynamicly.
the default form height is lets say 200 px, and when i press a resize button i would resize the form height to 400 px.

That’s because I don’t want to have a scrollbar in the webclient. (when the form is designed to big) but when i hide my header information i would like the list form to be 400 px.

Thanks in advance.

Hi Maurice,

You can do this with the onResize form event (no need for a button then) and the solutionModel.
Be aware that you don’t set the height of the form but from it’s form part(s). So usually that is the body.
Just take a look at the JSForm object in the Solution Explorer.
You can also check out the Gantt module on ServoyForge that does the same thing.

Hope this helps.

Hi Robert,

Thanks, i will take a look! :)

Coming to think about this I wonder about the following.

Assume I create a form with dimension 640/480 (I guess nobody is using that these days.)
What I want is to display the form full-screen. Meaning the following.
I have the form set to display full screen

A client has a 1024/768 screen. The form resizes to 1024/768
Another client has another dimension, the form resizes to that automagically and all controls adjust likewise
The resizing of the controls can be taken care of by the anchors
How do I get along with the form itself?

Boudewijn:
Coming to think about this I wonder about the following.

Assume I create a form with dimension 640/480 (I guess nobody is using that these days.)
What I want is to display the form full-screen. Meaning the following.
I have the form set to display full screen

A client has a 1024/768 screen. The form resizes to 1024/768
Another client has another dimension, the form resizes to that automagically and all controls adjust likewise
The resizing of the controls can be taken care of by the anchors

That’s indeed how it works. The form will grow (no need for any extra code for that) and you can anchor your controls so they can move/grow accordingly.

Boudewijn:
How do I get along with the form itself?

Not sure what you are asking here. Can you rephrase ?