Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting tabs from a page frame
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00122191
Message ID:
00122196
Vues:
18
Hi Steve,

When subclassing, the visual designer will not allow you to delete objects existing in Parent Class at design time. You need to remove these objects at run-time i.e. through code.

The RemoveObject() will work in your case. e.g. You could use this.Removeobject('PageName') in the Init() of PageFrame. Another approach would be to put RETURN .F. in the Init() of the Page which you want to remove so it does not instantiate itself.

>I have a form with a pageframe on it that I am using as a base class for all of my data entry forms. the pageframe has 3 pages on it. My problem now is that not all of my forms need all 3 pages and I can't figure out how to get rid of the pages. Anyone have any suggestions on how I delete or make them invisible at design or run time?!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform