Forum Post: Re: Oe 11.51: Abl Form: Identify On Which Widget The Mouse Is Currently Pointing

  • Thread starter Thread starter nborshukov
  • Start date Start date
Status
Not open for further replies.
N

nborshukov

Guest
The coordinates of a widget are relative to frame upper left corner. So, start "scanning" frame widgets you must ClientToScreen frame upper left corner, passing frame hwnd and loading in point structure 0 for x and y. Then ClientToScreen functions returns frame 0,0 in screen coordinates. After that scrren coordinates of a widget are: Top left: frame-x-screen + widget:x, frame-y-screen + widget:y; Bottom right: top-left-x + widget:width-pixels; top-left-y + widget:height-pixels

Continue reading...
 
Status
Not open for further replies.
Back
Top