Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you Create a Page Class in VFP 7?
Message
De
26/11/2002 15:26:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00726793
Message ID:
00727273
Vues:
16
I assume you set the ActivePage in the cpgfDirector::Init to solve this.

cpgfDirector::Init

DODEFAULT()

WITH THIS
* kill the old pages; if they exist
FOR i = .PAGECOUNT TO 1 STEP -1
.REMOVEOBJECT(.PAGES(i).NAME)
ENDFOR
.PAGECOUNT = 0


* additional loading statements
* ccntNames is a container with First Name, Last Name objects...
this.addobject("ccntData", "ccntNames", parameters...)
WITH .ccntData
.visible = .t.
ENDWITH



.ACTIVEPAGE = 1
ENDWITH

Keep in mind that you need to make them visible.
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform