Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pickup _screen windowstate change?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00085679
Message ID:
00085996
Views:
34
>>You're absolutely right. Bad testing on my part. I updated a label in the paint event, which, of course, caused paint to fire again, ad infinitum. Interestingly enough. If you resize a form and make it smaller, paint doesn't fire, but if you make it larger, it does. Further, it doesn't fire if you move the form.
>
>I guess there's only a need to repaint when there's an increase in size?
>

This is a guess, but I'd say it's because the areas are not displayed when made smaller, but new area is when made larger.

>>However, it does still leaves open the problem. Unfortunately, it doesn't appear as if any of the events fire when the _SCREEN is resized. It would seem that the only way to handle the problem is to add a timer to the form.
>
>Or you can use top-level, where events do fire...

Exactly.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform