Hi, I have a very similar problem to this, hope you can assist. I am on Windows using Nightly Build 8248, using MSVC 2010 Express compiler.
I am designing a small Frame GUI application using wxSmith and using wxAuiManager to manage the main panels in the GUI, as I want the docking features etc.
I prefer to create separate panels deriving from wxPanel using wxSmith -> Add wxPanel (because then any events for the panel generated by wxSmith get handlers in my derived class). This "Add wxPanel" feature has a very similar dialog as you showed for wxDialog above, and I clicked all the options in the advanced section to get all the constructor parameters. It gives me up to 4 constructor parameters for my derived panel class, but no more. Let us assume my derived class is called
GraphicsPanel:
class GraphicsPanel: public wxPanel
{
public:
GraphicsPanel(wxWindow* parent,
wxWindowID id=wxID_ANY,
const wxPoint& pos=wxDefaultPosition,
const wxSize& size=wxDefaultSize);
...
Now I want to use 'GraphicsPanel' in my wxAuiManager instance and again I used wxSmith to insert a wxPanel into wxAuiManager (by clicking a wxPanel icon from the "Standard" tab). In the resource editor I for that panel, I changed the class name to 'GraphicsPanel', and added the proper #includes as necessary in the code.
This is all very well (?), but when I compile the code, I get this error
error C2661: 'GraphicsPanel::GraphicsPanel' : no overloaded function takes 6 argumentsThe obvious explanation for this problem is that a wxPanel takes up to 6 constructor parameters (long style and const wxString& name, both with default values), and wxSmith generates code to pass all 6 constructor parameters to a wxPanel, but will not allow you to derive a wxPanel taking more than 4 constructor parameters, and then you get the problem above.
A work-around is to manually add the missing 2 constructor parameters to the GraphicsPanel constructor (so it becomes compatible with the auto-generated call), but it is tedious to have to do this every time.
Am I missing something obvious, or is there a way to tell wxSmith to generate a wxPanel derivative taking all 6 constructor parameters?