Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Location of a panel on the screen

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
I have a panel in a form. It can change size or location when the form change size or location. I would like to find its top left coordinates on the monitor screen, not in the form. Is that possible?
Thanks.
PO
 
Thanks, i did find this article earlier and did use the screentoclient function but was not able to get a valid location of my panel. i have no idea where's the values i am showing come from. I guess i 'll have to troubleshoot. I was hoping for something else.
Thanks.
 
You should be able to calculate it where panel_x = panel.left + parent.left and panel_y = panel.top + parent.top
Right?


Roo
Delphi Rules!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top