Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting tabs from a page frame
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00122191
Message ID:
00122196
Views:
19
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?!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform