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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only