JDR2500
8 hours agoContributor
DblClick failing because point is out of bounds??
Hmm, I'm having an interesting problem trying to double-click on a control in our desktop application. The problem is the DblClick (double-click) action fails and the log reports that is because the specified point is out of bounds. However, I added a HoverMouse in the preceding line to debug the problem. It has no problem hovering the mouse in the correct position using the exact same coordinates. The control is a grid and I'm trying to double-click on the right border of one of the header cells.
The log entry for the hover shows: Hover at point (453, 83).
Here are related screen captures and the code:
Set o_colHdr = <A valid alias for the header cell is here>
i_Width = o_colHdr.Width
i_Height = o_colHdr.Height
x = i_Width
y = i_Height/2
o_colHdr.HoverMouse x, y 'This works like a champ
o_colHdr.DblClick x, y 'This fails miserably
Ideas? Am I missing something obvious here?