>I put several objects in _screen and i need to rearange them when user resize the _screen. How to write code for _screen.resize?
>It is any way to intercept _screen.resize?
>
>Thanks.
The good news is you can get the MAINHWND(), that is, the handle to the main VFP window, using FoxTools. The bad news is you'll have to hook the windows resizing call. Check out SPYOCX from
www.desaware.com (Dan Appleman) for a tool which will help you do this. To do the callback, you'll probably have to define either a menu hotkey or an OKL and stuff the windows keyboard buffer with the key (this is what Mike Reed does in COMET, the last I looked, which was a while ago), and have that trigger the routine.
Let us know what works, OK?
The other alternative: don't use the VFP main screen. Do everythiing in a top-level form with its own menu, etc. Then you'll have complete control. This is my preferred solution, fwiw. The VFP screen is great for development, and a pain for runtime programs.
Hank