Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Load Form 's speed
Message
 
To
24/01/2001 13:38:24
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00467978
Message ID:
00468074
Views:
20
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform