Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Some controls do not refresh
Message
 
 
À
27/02/2001 22:31:41
Edward See
Magicalogic Consultancy System
Quezon, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00480384
Message ID:
00480527
Vues:
8
>Please help
>I have a form with a pageframe and several buttons on the form.
>When run, some buttons do not show. This happened way back with VFP6 Version1 on Win95 ans some Win98.
>With VFP6 SP3, this seems to cure it. Now I have VFP SP4 on Windows 2000 Server and it seems to be happening all over again.
>
>I have the code in Form.Init() as
>
>WITH THISFORM
> .LOCKSCREEN=.T.
> ....codes here for opening file and intializing grids
> .REFRESH()
> .LOCKSCREEN=.F.
>ENDWITH

Hi Edward,

Calling Form.Refresh or any object.Refresh from the Form.Init changes the order of the event firing and therefore may lead to some unpredictable results. I used to have Refresh() in Form.Init by myself, but after reading several messages in UT related to the problems, causing by this, I walked throug all my projects and remove this line from the code.

Check VFP - Do and Don't document here in Documents section. It contains several very important advices.

Hope this helps.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform