Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Turn 3 forms into 3 tabs on 1 form
Message
From
06/01/2009 20:45:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/01/2009 20:39:49
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01371549
Message ID:
01371551
Views:
19
>Without knowing all the nuances and details, what do you think would be involved in taking 3 forms, all using the same class libraries for form and control classes, and turning them into tabs on a pageframe on 1 form? Looking for the high-level view here. Any easy way to do it? Just create a form with a pageframe on it and copy the entire group of form objects onto each page and deal with the fallout?

Yes, that would probably be the way to go. I would try it, in other words. Specific things to look out for, that come to mind right now, include:
  • Specific methods from the class libraries - or of derived objects - might reference specific levels of the form hierarchy. This must be adjusted. For example, TextBox1 refreshes TextBox2 with ThisForm.TextBox2.Refresh(). In this case, you will have to insert "PageFrame1.Page1.", or change to a relative reference.
  • There might be changes in the way the form refreshes. Remember that a ThisForm.Refresh() will only refresh the active page on a PageFrame; other pages may have to be refreshed when selected.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Previous
    Reply
    Map
    View

    Click here to load this message in the networking platform