Page 1 of 1

form properties

PostPosted: Sun Feb 13, 2011 11:14 am
by Boudewijn
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.

Re: form properties

PostPosted: Sun Feb 13, 2011 12:29 pm
by ROCLASI
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.

Re: form properties

PostPosted: Sun Feb 13, 2011 11:33 pm
by Boudewijn
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.