Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms take too long to display!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00009096
Message ID:
00009201
Vues:
30
>Our application uses the VFP CodeBook 3 framework. When we run the application and try to run a form via the menu, it takes a very long time for the form to display....up to 70 seconds for a form with 8tab pages!
>
>We are running on a client-server environment with Sybase as the backend database, Win95, and on Pentium 133 machines with 16mb RAM.
>
>Has anybody had this problem and how have you resolved it?
>
>TIA,
>
>Mario

Here's a tip to show a form faster when having pageframes.

1.Do the overall design of all pages
2.For each page, select all objects and do a File - Save as class from the
menu. For a good naming convention, you may save each page under its own
name (page1, page2, etc.). This will result as a container for each page.
3.Remove each object from each page and add this code in the Activate()
event of each page. You may want to adjust the position of the containers.

ThisForm.Lockscreen = .t.
if This.ControlCount=0 && Permet de vérifier si la page a déjà été chargé

This.AddObject("cpage2","cpage2")
This.cpage2.visible = .f.
This.cpage2.left = 19
This.cpage2.top = 6
This.cpage2.visible = .t.

endif
ThisForm.Lockscreen = .f.

When the form will run for the first time, it will only load the objects of the first page
resulting in a much faster load of the form. Then, when the user move from page to
page, the container will be loaded.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform