Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Existing pageframe as a basis for another form
Message
From
05/12/2016 17:10:49
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01644470
Message ID:
01644497
Views:
51
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform