Page 1 of 1

Getting control position on the form

Posted: Fri Aug 07, 2009 12:41 pm
by ConvertFromOldNGs
by Anonymous >> Mon, 27 Sep 2004 0:21:43 GMT

Hi,

I m new to Jade and want to know if there is a way where I can get a control position on a form. The control top and left properties are set to zero as the control parent is a sheet.

Re: Getting control position on the form

Posted: Fri Aug 07, 2009 12:41 pm
by ConvertFromOldNGs
by allistar >> Mon, 27 Sep 2004 1:19:41 GMT

Use the Control::getFormLeft and Control::getFormTop methods. Alternatively you need to recurse up through the parents of the control and accumulate the left and top positions accordingly.

Regards,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

Re: Getting control position on the form

Posted: Fri Aug 07, 2009 12:41 pm
by ConvertFromOldNGs
by Darrell Duniam >> Mon, 27 Sep 2004 1:30:50 GMT

Take a look at the Window::screenToWindow and Window::windowToScreen methods ? Obviously, these methods are inherited by the Control and Form classes.