User forums > Using Code::Blocks
How to implement inheritance of custom frames (wxSmith MDI app)
boya:
--- Quote from: kathbeau on December 02, 2014, 07:59:03 pm ---Another problem: Each time I modify the inherited .wxs, the "Create(..." is uncommented. Obviously, I can just comment it out again, but in a large and changing project this could get to be really annoying.
--- End quote ---
I think both the IDE issue and the uncommented "Create(..." are wxSmith-related limitations.
On adding a new frame derived from an existing frame, e.g. BaseChildFrame, we can see that actually wxSmith does not understand the base class. It only replaces "wxFrame" with the specified name. Therefore in the constructor "Create()" is called redundantly; Also wxSmith would not load the GUI of the base class in the designer. And the generated code is refreshed automatically (getting uncommented) when you modify .wxs file, just because wxSmith takes control of it in case you change the layout. So this is a dilemma unless this plug-in can distinguish two situations.
kathbeau:
--- Quote from: boya on December 03, 2014, 02:57:39 pm ---
--- Quote from: kathbeau on December 02, 2014, 07:59:03 pm ---Another problem: Each time I modify the inherited .wxs, the "Create(..." is uncommented. Obviously, I can just comment it out again, but in a large and changing project this could get to be really annoying.
--- End quote ---
I think both the IDE issue and the uncommented "Create(..." are wxSmith-related limitations.
--- End quote ---
Then I need to change my question. I'm going to start a new thread for that.
Thank you,
Kathleen
Navigation
[0] Message Index
[*] Previous page
Go to full version