Thanks for the code Sergey. It turns out that I didn't need the MOVE WINDOW (it was redundant), but, having your two functions could come in handy in the future.
Regards,
Mike
>Check
http://www.berezniker.com/content/pages/visual-foxpro/pixels-and-foxels >
>>I'm trying to move a window using the command "MOVE WINDOW myWindowname TO 300, 400" thinking that the x and y pixel values are valid. VFP does not complain when that statement executes, however, myWindowname is not shown because it is off the screen at Row 300 and Col 400 (I think). If I do the same command with 10,10, myWindowname is visible at what seems to be Row 10, Col 10.
>>
>>Does anyone know how I can move a window to a new location using pixels? I was really shocked that this command only seems to take row and col values. Seriously, who used row and col once Visual FoxPro appeared. Row and Col was DOS based no?
>>
>>Any help is greatly appreciated.
>>
>>Mike