Is frame inheritance possible?

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
kathbeau
Knows some wx things
Knows some wx things
Posts: 48
Joined: Fri Nov 28, 2014 6:30 pm

Is frame inheritance possible?

Post by kathbeau »

This is my first day working with WxDev-C++. I'm trying to emulate an MDI app I previously developed in C++ Builder.

I'm having success developing a test MDI application, but I'm stumped how to create a hierarchy of forms. For example, I'm looking for something like this:

BaseForm (derives from wxMDIChildFrame) has these widgets:
* wxBoxSizer
* wxPanel

BaseMenuForm (derives from BaseForm) has no widgets, but will have some protected properties and methods

WorkspaceForm (derives from BaseMenuForm) will add a sizer and a wxNotebook

SomeForm (derives from WorkspaceForm) will add pages and widgets to the notebook

At runtime, my derived forms inherit up the chain and display with a bright yellow panel. If I add more widgets to the BaseForm, the derived forms show those, too.

But the designer doesn't see the hierarchy, so I cannot add widgets at the derived stages (except through code).

I just want to know whether it is possible to configure my project and frames so that I can build on a hierarchy of frames.

Thanks,
Kathleen
Post Reply