Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running code after a resize
Message
 
 
À
26/02/2002 11:36:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00625168
Message ID:
00625206
Vues:
10
Hi!

You can catch a moment when user finished resizing in the timer, but you should check in the timer event for MDOWN() so the code will not run in between of resize event calls. As soon as mouse button released, fire the code - for sure user stopped to resize the form.

This is a default behaviour of all windows in windows application. User can swicth off this feature in the profile, so resizing of the form will look like a resizing of frame, after releasing the mouse form is resized to the frame, and as a result Resize event is called only once.

HTH.

>If I place the code inside the resize, the code will be run during the resize...so it will fire many times. I need to run my code just once, when the user has stopped resizing the form. Should have clarified that in my original post.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform