Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Access/Assign Method to Page Class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00734208
Message ID:
00734974
Views:
17
Another approach is to define your own "non-visual" page class and add all the custom code, assign, access, etc methods you need there.

The approach I have done with a framework I've developed is to have ANYTHING that will be put on a page of a pageframe stored in its OWN container. Then, when I build a pageframe, I add the container to the pageframe at run-time -- works great...

ie: in the init of the pageframe, I would do something like...

*/ First, add instance of non-visual page class
This.NewObject("pgStudent","MyNonViualClassPage","non_Visual_Classes.prg" )

*/ Now add container of controls belonging to the page
This.pgStudent.NewObject( "conStudentDetails", "StudentContainerClass", "MyPageContainers.vcx" )

*/ Finally, make the control visible
This.pgStudent.conStudentDetails.Visible
.pgStudent.conStudentMain.Visible = .T.
Previous
Reply
Map
View

Click here to load this message in the networking platform