How to get the dimensions (h & w) of dynamic objects

Avatar

Avatar

Yasser__AST-IT_

Avatar

Yasser__AST-IT_

Yasser__AST-IT_

10-06-2011

Hi,

Is there any way to get the dimensions (h & w) of dynamic objects (such as subform, or text field) via scripting?

To get way I was looking for, I tried using "object.h" or "object.w" in various events timings (i.e., @ initialize, form:ready and layout:ready) but I always get the result as "0".

If someone there knows a better way to place (event) the code or have different approach, I do appreciate it.

BR,

Yasser    

View Entire Topic

Avatar

Avatar

Vijayalakshmi

Avatar

Vijayalakshmi

Vijayalakshmi

24-08-2016

Hi Yanip,

You have got the solution for this issue? Can you please explain me. I want to get the height of a text field 'A' which has expand to fit property or the height of the subform which contains that text field 'A'(subform is set to "auto fit") . My requirement is to assign this text field 'A' height to another checkbox field. I want to have the same height for both text field and checkbox field after that text field 'A' is dynamically expanded.

Thanks ,

Viji