Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running code after a resize
Message
De
26/02/2002 12:32:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/02/2002 11:59:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00625168
Message ID:
00625252
Vues:
10
>This is great. I'm getting really close now.
>One more small problem, though.
>
>I have code similar to this in the timer:
>
>IF !MDOWN() THEN
> THISFORM.Timer1.Enabled = .F.
> MESSAGEBOX("HI")
>ENDIF
>
>And the timer is enabled on the resize. Works great in most situations.
>
>But, when i resize the form and hold it in the same position for 4-5 seconds before releasing the button on the mouse at that same position (at which point the timer will hit) it actually runs my code (and displays my messagebox) multiple times. The longer I hold the mouse before letting go the more times.
>
>I'm not sure exactly why this is happening or how to get around it.
>Any suggestions.
>Oh, and thank you very much for the help so far

You could use a Timer to postpone the ejecution. On Form.Resize(), you can both enable and reset() the timer object.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform