It appears that in my circumstance default "Creating code" property for the custom element cannot be counted on to be correct. I changed this element to the string:
$(THIS) = new $(CLASS)($(PARENT),$(ID),SchematicCascodeBoostBitmap,$(POS),$(SIZE),$(STYLE),$(NAME));
Then I defined and insantiated SchematicCascodeBoostBitmap in the constructor as shown in this excerpt:
TIAFrame::TIAFrame(wxWindow* parent,wxWindowID id)
{
const wxString Filename("Images//TIA Cascode & Bootstrap cropped.sch.png");
const wxBitmap SchematicCascodeBoostBitmap( Filename, wxBITMAP_TYPE_PNG );
//(*Initialize(TIAFrame)
...
img_Schem_Cascode_Boost = new wxGenericStaticBitmap(Panel1,ID_IMG_SCHEM_CASCODE_BOOST,SchematicCascodeBoostBitmap,wxPoint(0,0),wxDefaultSize,,_T("ID_IMG_SCHEM_CASCODE_BOOST"));
...
//*)
}
The code compiles but the image does not show in the sizer. I know I have defined and instantiated SchematicCascodeBoostBitmap correctly because before I used the Custom element I used SchematicCascodeBoostBitma to add the image in the form in code I created outside of what Code::Blocks creates. I used the code automatically generated code as an example. The image displayed, but not inside the sizer.
What is missing here regarding the use of the Custom element?