Is frame inheritance possible?

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

Is frame inheritance possible?

Postby kathbeau » Thu Dec 04, 2014 10:53 pm

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.


Return to “wxDev-C++”

Who is online

Users browsing this forum: No registered users and 3 guests