Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Forms & Form designer
Jay,
Try this.Just pass it an object reference to the control you want to target. It doesn't need any API calls. You might want to adjust where the moure is moved to. I centered it in the control...
Hope this helps!
Steve
LPARAMETERS oControl
m.iTop = OBJTOCLIENT(oControl, 1)
m.iLeft = OBJTOCLIENT(oControl, 2)
m.iTopBorder = Sysmetric(4)
m.iLeftBorder = Sysmetric(4)
m.iTitleHeight = SYSMETRIC(9)
m.iTitleBarHeight = m.iTitleHeight + m.iTopBorder
m.iY = m.iTop + m.iTitleBarHeight + ThisForm.Top m.iX = m.iLeft + m.iLeftBorder + ThisForm.Left
MOUSE AT ;
m.iY + ROUND(oControl.Height/2,0), ;
m.iX + ROUND(oControl.Width/2,0) ;
PIXELS
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only