3. Comment (or better remove) the create()-call in BuildContent(...), it will come back again.... so you will do it many times...
3. Add the constructor like:
:wxPanel(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("id")), XYZ(xyz)
Hmm, If I understood your method correctly, this commenting-out is not needed,
leave that Create() - call uncommented and add the initializer list to constructor like this:
Anyway if you really need to comment that Connect() function and do not want to re-comment it every change in wxSmith, here's how it can be done:
1. In the "Extra code" property of main resource item (the one for example with window's title) add code containing closing comment tag:
... Closing comment to prevent Create() call ..
*/
Now go to place where the Create function is located and find the first wxSmith-block mark (comment starting with //(* ) over it and put opening comment tag just before it:
/*
.. Comment preventing Create() call ...
Now if you don't use XRC file, make sure that all items in the resource have "Is Member" selected - that's the only drawback. And voila - the Create() call will always remain commented.
Regards
BYO