Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resize event of _screen
Message
De
25/11/1997 09:50:02
 
 
À
25/11/1997 07:43:37
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00062106
Message ID:
00062141
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform