Getting control position on the form

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Getting control position on the form

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:41 pm

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Getting control position on the form

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:41 pm

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 ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Getting control position on the form

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:41 pm

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.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 16 guests