Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Resize
Message
From
20/07/2011 15:28:53
 
 
To
20/07/2011 09:30:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01518416
Message ID:
01518695
Views:
45
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform