Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement