Page 1 of 1

How to resize the form web client

PostPosted: Thu Oct 10, 2013 3:20 am
by ethandz
Hello All,

How can we resize the form or elements in the form in web client?

Thank you very much.

Re: How to resize the form web client

PostPosted: Thu Oct 10, 2013 7:51 am
by prasadbabu.mfs
Hi ethandz,

Elements in the form can be resize by setting the form state to design mode.
Please make sure that every element ( that you wish to resize ) in the form is provided with a name.

Code: Select all
form.controller.setDesignMode(true)


Hope this helps you.... :)

Thanks,
pb.

Re: How to resize the form web client

PostPosted: Thu Oct 10, 2013 9:08 am
by ROCLASI
Hi ethandz,

Your question doesn't explain to us how you like to resize these elements.
Like Prasad Babu already explained you can set your form to designmode which allows the user to move/resize elements on the form.
But if you want to do it by code, lets say on the onResize event, then you need to address the elements functions setLocation() and setSize().
Also you say you want to resize the form. Forms resize automatically when you change the window size. Or are you talking about forms in tabpanels, you can then resize these tabpanels and the containing form(s) adjust accordingly.
And of course there is also the anchoring property that all elements have that make Servoy do the sliding/resizing automatically according to your anchor settings.

Perhaps you can explain your use-case a bit more so we can provide you with a better answer.

Re: How to resize the form web client

PostPosted: Fri Oct 11, 2013 12:17 am
by ethandz
Thank you both of you, it helps a lot.