Hi Nancy ---
Wish there was a reasonable way but there isn't :-)
INT(SYSMETRIC(1)/FONTMETRIC(6,WFONT(1),WFONT(2),WFONT(3))) = Max # of "cols"
INT(SYSMETRIC(2)/FONTMETRIC(1,WFONT(1),WFONT(2),WFONT(3))) = Max # of "rows"
Now use the Top and Left properties of the open Window vs. _SCREEN and the Top and Left properties of the control vs the Window to determine an absolute position for the control. Once you have those absolutes, get a factor of those coordinates vs the maximum (use SYSMETRIC) for the screen and use divide the formulas above by that factor and use those values for the WAIT AT value.
PITA, huh?
>I'm coming up blank on a reasonable way to translate the position of a control (which is in pixels) to screen rows/cols, which is the parameter WAIT WINDOW takes.
>
>Any ideas? TIA
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05