Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassed pageframe inside subclassed pageframe
Message
De
17/03/2006 06:25:19
Richard Candeland
Richard Candeland Software Services
Keighley, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Subclassed pageframe inside subclassed pageframe
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01105243
Message ID:
01105243
Vues:
79
I have a class-based form containing a 4-page pageframe which is based on a sub-class of the pageframe base class. As some of the pages have become rather cluttered, I decided on a couple of the pages to add a pageframe based on the same sub-class and split the cluttered controls between the separate pages.

Everything is fine until I try to create a form from my subclass, where I get the error message:

Error loading file - record number 1321. rcpgf1 or one of its members. Parent: Cannot add rcpgf1. Class definition is cyclical.

To verify this wasn't something to do with my rather complicated form, I tried to recreate the problem with a class-based form containing only my pageframe sub-class, with another pageframe sub-class on its Page 1. I get exactly the same problem.

My pageframe sub-class has 2 pages. I have also tried with a page-frame sub-class with only 1 page - same problem. A page-frame sub-class with 0 pages seems to work OK but as other threads note there are other problems with 0-page pageframe classes. If I use the standard (2-page) pageframe base class rather than my sub-class, the problem also disappears.

I have looked at the records generated in the .VCX files for the two different forms and the only difference I can see is that in the Properties field for the sub-classed pageframe there is no line for 'pagecount = 2'. However, if I add this manually, I still cannot create a form from the class.

Cannot anyone help?
Richard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform