Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Resize
Message
De
20/07/2011 15:28:53
 
 
À
20/07/2011 09:30:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01518416
Message ID:
01518695
Vues:
46
>>>Is there a way to execute some code after the re-size of the form is complete. i.e. I want to run some code only when the user has finished resizing the form, not during the resizing process.
>>
>>establish a template pattern
>>
>>_before()
>>_doit()
>>_finished()
>>
>>in a subclass and add to the _finished method...
>>as well as a logic not to _doit unless a certain amount of time has passed without calling
>>_doit in a subclass overwritten at a more "outer" level
>>
>>< update>or an if surrounding the template.< /update>

>I will look into this but I am not sure what you mean exactly. Ideally what I want is to not use the Windows feature "draw window contents while re-sizing". That actually achieves the correct result as the window is only redrawn once the resizing operation is completed and the user lets go of the mouse.

See Fabio & Sergey for the "logic" I mean and play a bit with NoDefault and eval(this.baseclass + "::resize()) in the _Doit

HTH

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform