Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Load Form 's speed
Message
 
À
24/01/2001 13:38:24
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00467978
Message ID:
00468074
Vues:
19
>Another issue is the time needed to instantiate the native controls and the time needed to bind them to the datasources. Comboboxes and listboxes are notorious because when they're bound to many items it takes quite a while to instantiate. When you are using textboxes based on a custom class, you classcode might be the bottleneck. Try to minimize the custom code in the INIT event of such objects.
>
>It might be wise to use a late binding strategy. Controls on another page only need to be bound or loaded when this page is activated.
>
>To have a clue where the performance bottleneck is, you might to remove a few controls at a time and test performance, remove some more controls etc.


Hi,

When the problem is the loading of some controls like Walter said, then you can also place this controls in a container class, and add this container to your page at the activate event of that page with the following code :
ThisForm.lockscreen = .t.
If This.controlcount = 0
	Wait 'Loading page ...' window nowait noclear
	This.addobject('Yourclass','YourClass')
	This.YourClass.visible = .t.
	Wait clear
Endif
This.refresh
ThisForm.lockscreen = .f.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform