How to resize the form web client

Questions, answers, tips and ideas on Servoy Client

How to resize the form web client

Postby ethandz » Thu Oct 10, 2013 3:20 am

Hello All,

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

Thank you very much.
ethandz
 
Posts: 7
Joined: Thu Oct 10, 2013 3:13 am

Re: How to resize the form web client

Postby prasadbabu.mfs » Thu Oct 10, 2013 7:51 am

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.
Prasad Babu
Servoy Developer
prasadbabu.mfs
 
Posts: 13
Joined: Mon Feb 13, 2012 4:53 pm

Re: How to resize the form web client

Postby ROCLASI » Thu Oct 10, 2013 9:08 am

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.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: How to resize the form web client

Postby ethandz » Fri Oct 11, 2013 12:17 am

Thank you both of you, it helps a lot.
ethandz
 
Posts: 7
Joined: Thu Oct 10, 2013 3:13 am


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 6 guests

cron