I apologize if this question has been answered already..
When adding wxTextCtrl to my custom frame, I get an assert on cleanup after closing the frame. This happens whether I use any sizer or even a panel to put it on.
Could anyone tell me why this works? ( wxButton )
Code: Select all
wxPanel *testPanel = new wxPanel( this, -1 );
btnBrowseFile = new wxButton( testPanel, ID_BTN_Browse, "..." );
btnBrowseModel = new wxButton( testPanel, ID_BTN_Browse, "..." );
Code: Select all
wxPanel *testPanel = new wxPanel( this, -1 );
tfFileName = new wxTextCtrl( testPanel, ID_TF_File, "kdsjflkds" );
tfModelName = new wxTextCtrl( testPanel, ID_TF_Model, "kdsjflskd" );