Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running code after a resize
Message
 
 
À
26/02/2002 13:01:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00625168
Message ID:
00625315
Vues:
11
Matt,

According to the Windows design guidelines I'm pretty sure that you should be resizing the contents on the fly if the user has picked this mode for their machine. Frankly it drives me crazy so I never turn it on.

But if you really don't want to why not just simply bracket the code in your Resize() like this:

if ( ! mdown() )
* the real code goes in here
endif

You shouldn't need a timer at all.

>This will work, except in the case where you resize the form and keep it at one size for a few seconds (or longer) before releasing the mouse in that same position. In this case the resize doesn't get called (because your mouse is staying in the same position) and you haven't let your mouse up, so the timer is running. I tried this in my code and I still have the problem with it running the code many times (the longer you hold the resize in the same position, the more times it runs)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform