Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame infomation not inheriting
Message
From
21/08/1997 19:56:41
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00046213
Message ID:
00046321
Views:
26
Thanks for the advise! I'll give that some thought. The reason I was making a base class "form" is because we had several forms that were very similar, so we made a base-class with all the common controls, then subclassed that to make the final forms to avoid duplicate work. Is this a bad aproach?

>>I've got a strange problem. I've got a base class containing various labels, TextBoxes, buttons and a PageFrame with 6 Pages. I've got another class that inherits from the base class. When I change componants on the Pages in the base class (resize things, moving controls around on a Page, etc...), the class that inherits from the base class changes appropriately. But when I change the Page Order of the pages in the base class, the inherited class does NOT reflect the changes.
>>
>>Any ideas?
>Lee,
>
>I cannot tell why the pageorder is not inheriting. I can tell you that you are header down a design road that has lots of traps and land mines in it. Ths is because you are subclassing compound classes and this causes problems. It is a much sounder class design to build each control as a class and subclass that as needed, build a pageframewclass that has NO CONTROLS in it and subclass that as needed, then as the last class definition before creating an object compose the finished pageframe by putting the controls in it. This is referred to as late binding and is much easier to evlove in the future.
>
>The traps will lie if you try to modify the code in one of the controls in one of the pageframe subclasses, the calls to the "inherited" code will not work properly. Also if you go back to the parent pageframe and remove something then go to the subclass you get situations where the subclass will not open with an error and you're skunked.
-----
Lee Perkins
TigerBase Technologies

"Lee is one that would plug his brain into the internet, if he could, and STILL scream for more" - Very good friend of Lee's
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform