Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize event of _screen
Message
From
25/11/1997 09:50:02
 
 
To
25/11/1997 07:43:37
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00062106
Message ID:
00062141
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform