Author Topic: wxSmith : add option for Create function in inhereited cases  (Read 56 times)

Offline LR83

  • Single posting newcomer
  • *
  • Posts: 6
I have a problem when I want to inherit from my custom panel. wxSmith add automatically this Create function:
Code
Create(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("id"));
But my constructor is:
Code
myNewPanel::myNewPanel(wxWindow* parent, wxWindowID id): myPanel(parent, id)
so I need each time to comment the bad Create line.

Is it possible to add an option to prevent this line from being added automatically, such as the "Lay-out the window" option?

And another point, is it possible to add another option for the "Lay-out the window" option to have the choice beetwen SetSizeHints(this) and Fit(this) ?