Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable buttons during process - odd behaviour
Message
De
05/12/2003 18:29:48
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00856233
Message ID:
00856494
Vues:
31
> I would rather think that it is Windows behavior which has something with
> prioritization of the processes? tasks?.

No, it is just the way Fox works (like many other windowed apps). Basically, it makes a mental note to do a repaint real soon now and then continues doing what it was doing anyway - i.e. your lengthy process. But the repainting won't happen until Fox processes events from its queue, which is why inserting a DOEVENTS works admirably for causing invalidated areas to be repainted.

The .Draw method seems to trigger an unconditional repaint immediately (like calling UpdateWindow()), instead of merely marking the window as needing new coat of paint like InvalidateRect() & cousins do.

> I have seen delayed refreshes in other programs too, for example, in
> Windows Explorer.

Gee. That piece of sh*te does not even follow Microsoft's own guidelines and it is certainly not indicative of how a well-written Windows program behaves. And if its evolution from IE4 over W9x and W2K to WXP is any indication than it will only get more b0rken instead of less.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform