Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent a page of a pageframe loading
Message
De
12/11/2002 06:45:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00721464
Message ID:
00721467
Vues:
9
Caroline

I have not tried this but perhaps you can put some code in the INIT event of each page which determines whether to init that particular page or not. If you do not want that page then I think you could do something like THIS.ENABLED = .F. and then NODEFAULT to prevent the objects for that page from being created. Something like this perhaps?

Jos

>Hi all
>
>Is there some way to prevent the overhead of loading a page of a pageframe other than by adding the objects the first time the page is selected.
>
>I have a pageframe with some 14 pages, some of which are not available if certain modules have not been installed. I would just like to be able to delete the unavailable pages as necessary in the Load event but at that stage the pages don't yet exist, but if I wait till the Init method then the pages and all their objects will have been initialised, so....
>
>Is there some other way of achieving this?
>Thanks in anticipation.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform