>>>I want to reposition forms from top/left to center based on whether _screen is normal or maximized. Is there a (hopefully easy) way to do this?
>>
>>Bruce,
>>
>>Here's a way:
>>
>>DECLARE SHORT IsZoomed IN Win32API;
>> INTEGER hWnd
>>* Get the window handle from Foxtools
>>* or FindWindow (e.g lnhWnd = MainhWnd())
>>* If the _SCREEN is maximized IsZoomed will
>>* return a non-zero value
>>llismax = (IsZoomed(lnhWnd) # 0)
>
>Thanks, George...I'm not quite sure how to implement it, though, that is, where to "catch" it in vfp events. Any ideas?
Well, if you're trying to center a child form, you might try "catching" in in the form's Paint method. That fires 70 times a second.
hth,
George
Ubi caritas et amor, deus ibi est