Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running code after a resize
Message
From
26/02/2002 11:43:32
 
 
To
26/02/2002 11:36:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00625168
Message ID:
00625206
Views:
12
Hi!

You can catch a moment when user finished resizing in the timer, but you should check in the timer event for MDOWN() so the code will not run in between of resize event calls. As soon as mouse button released, fire the code - for sure user stopped to resize the form.

This is a default behaviour of all windows in windows application. User can swicth off this feature in the profile, so resizing of the form will look like a resizing of frame, after releasing the mouse form is resized to the frame, and as a result Resize event is called only once.

HTH.

>If I place the code inside the resize, the code will be run during the resize...so it will fire many times. I need to run my code just once, when the user has stopped resizing the form. Should have clarified that in my original post.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform