Thanks,
In case someone else needs it:
1. Add wxPanel, derive it from wxPanel (do not add other classes here)
1.5 add custom argument: Xyz* xyz (unfortunally you have to add a default value ( =0), so be careful to add the xyz when creating the object... )
1.75 Hit the OK button
2. Add other baseclasses manually in newPanel.cpp / .h
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)
4. To link the new panel, create a custom widget, use the newPanel as "classname", check the "Use ""for include", add the Header in "Include file", adapt the "Creating Code" to the needed constructor, in my case: $(THIS) = new $(CLASS)($(PARENT),$(ID),$(POS),$(SIZE),my_xyz);
and finally have a nice day!!!
coeps