Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement