Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Existing pageframe as a basis for another form
Message
 
 
À
05/12/2016 17:10:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01644470
Message ID:
01644536
Vues:
41
>If this is a pageframe custom class that has the four pages, then the short answer is no you cannot remove the pages for another instance on a different form. You can however, make the first and second pages hidden in the new form (Visible property equal False) - at run-time I am not sure if the tabs will be visible.
>
>You could copy to a new class and then remove the first two pages. You have to move the controls from page 3 and 4 to page 1 and 2 respectively and then set the pagecount to 2. An alternative is to hack the class definition and in the property field for the pageframe set the PageCount=2. Then delete the objects that have the .page1 and .page2 contained in the parent field. Then replace all .page3 with .page1 in the parent field and .page4 with .page2. Recompile the file. You will need to manually update any code that reflects page3 and page4.

Thanks, Greg. I scratched that whole idea yesterday after the first reply I got and started working on a new fresh pageframe.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform