form properties

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

form properties

Postby Boudewijn » Sun Feb 13, 2011 11:14 am

I found it is hard to get form properties.
Like, I need to know the position of a form, or the height
So in my idea I would like to get that info as in:
forms['formmname'].x and forms['formname'].y, forms['formname'].height

Well, I waas proven wrong. to get the x or y I need to use getLocationX(), getLocaltionY(). the form height is not available in any way!
So having these (and a lot more properties) available woyuld really make our life a lot simpler.
Boudewijn
 
Posts: 41
Joined: Sun Sep 26, 2010 8:35 am

Re: form properties

Postby ROCLASI » Sun Feb 13, 2011 12:29 pm

Hi Boudewijn,

A form consists out of form parts (header/body/footer/etc). So to get the form height you need to look at the form part heights.
Code: Select all
var bodyHeight = controller.getPartHeight(JSPart.BODY);

For a full list of the JSPart properties check out the JSPart under the SolutionModel node (Solution Explorer view).

Hope this helps.
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: form properties

Postby Boudewijn » Sun Feb 13, 2011 11:33 pm

a form is a form is a form is a form. If I need to know the property then that is exactly what I want. the value of the property.
Boudewijn
 
Posts: 41
Joined: Sun Sep 26, 2010 8:35 am


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 12 guests