Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh on pageframes
Message
 
 
À
14/06/2001 14:13:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00519586
Message ID:
00519814
Vues:
13
Michel,

You should use the PageRefresher class that's available from my website. It allows the pages to only be refreshed as they become visible. You don't have to waste the time refreshing all the pages every time.

>A few years ago, we have found that Visual FoxPro doesn't refresh the pageframes when we call the Refresh() method. So, we came up with the following code in the Refresh() method:
>
>
>=AMEMBER(laMember,ThisForm,2)
>FOR lnCompteur=1 TO ALEN(laMember,1)
>   IF UPPER(EVALUATE('ThisForm.'+ALLTRIM(laMember[lnCompteur])+'.BaseClass'))='PAGEFRAME'
>      FOR lnCompteu2=1 TO EVALUATE('ThisForm.'+ALLTRIM(laMember[lnCompteur])+'.PageCount')
>
>         * We refresh each page of the pageframe
>         =EVAL('ThisForm.'+ALLTRIM(laMember[lnCompteur])+'.Page'+ALLTRIM(STR(lnCompteu2))+'.Refresh()')
>
>      NEXT
>   ENDIF
>NEXT
>
>
>Any comment on that? Is that still needed? Any better approach?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform