Board index » delphi » TWinControl absolute position

TWinControl absolute position

Hi there,
I've a form with a lot of panels, labels, TEdit component inside it. I want
to open a new borderless form just on the bottom right of a TEdit. How can I
determine TEdit absolute position (not relative to his parent)? I tried a
parent loop to get parents left / top until main form is reached, but it is
not accurate. How can I do?
Thx
Bombi
abone...@yahoo.com
 

Re:TWinControl absolute position


Have you tried ScreenToClient and/or ClientToScreen?

Hertwig

bombi <abone...@yahoo.com> schreef in berichtnieuws 3a7eef82$1_1@dnews...

Quote
> Hi there,
> I've a form with a lot of panels, labels, TEdit component inside it. I
want
> to open a new borderless form just on the bottom right of a TEdit. How can
I
> determine TEdit absolute position (not relative to his parent)? I tried a
> parent loop to get parents left / top until main form is reached, but it
is
> not accurate. How can I do?
> Thx
> Bombi
> abone...@yahoo.com

Other Threads