Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Controls go blank during processing
Message
 
 
À
23/06/2008 09:25:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01326002
Message ID:
01326117
Vues:
19
Hi Tom,

You would want to bind WM_ACTIVATE to a custom method because Refresh() will be queued and in the tough loop not refresh the form immediately. In the method you would use Thisform.Draw() or Thisform.Paint() (whichever works for you). The rest of the technical details should be covered by VFP sample code.

>Sergey, thanks for another great idea to solve my problem. Unfortunately, I do not use VFP nearly as much as I used to and have never used BINDEVENT(). I did look a the solutions samples you mentioned but not sure I have it right. This is what I think needs to happen can you tell me if this is correct.
>
>1.) Inside the LOAD event of the form I want to show put in this code (not sure if _VFP.hWnd should be in 1st param)
> BINDEVENT( _VFP.hWnd, WM_ACTIVATE, ThisForm, "refresh" )
>
>2.) Inside the UNLOAD event
> UNBINDEVENT( _VFP.hWnd, WM_ACTIVATE )
>
>Is that it? Are the BINDEVENT and UNBINDEVENT calls in the correct place such that when I begin the intensive app it appears, I click on another window (say IE) then click back I will get my form to show the status instead of a blank screen as it is now?
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform