1
Using Code::Blocks / Re: Code::Blocks and wxWidgets 3.2.5...
« Last post by Sephiroth on Today at 08:37:30 pm »Thank you, I will start there.
As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
You can look how wxSmith does it in the wxSmith->Add wxDialog menu.Great Tried that before but gave up as nobody seemed to had any refernces to wxNewWindowDlg. But now I found that its OnCreate() handler does have the logic
cbProject* cProject = m_pProject->GetCBProject(); // seems to get the project to add files to
wxArrayInt vnTargets; // I guess build targets
Manager::Get()->GetProjectManager()->AddFileToProject( strHeaderFilename, cProject, vnTargets );
Manager::Get()->GetProjectManager()->AddFileToProject( strCppFilename, cProject, vnTargets );
Manager::Get()->GetProjectManager()->AddFileToProject( strWxrFilename, cProject, vnTargets );
Manager::Get()->GetProjectManager()->GetUi()->RebuildTree();
// save configuration
ConfigManager* Cfg = Manager::Get()->GetConfigManager( "wxsmith" );
Cfg->Werite( "/newresource/useinitfunc", m_InitFunc->GetValue() );
...