NewFromTemplateDlg::NewFromTemplateDlg(TemplateOutputType initial, const wxArrayString& user_templates)
: m_Template(0L),
m_pWizard(0L),
m_WizardIndex(-1)
{
//ctor
wxXmlResource::Get()->LoadObject(this, 0L, _T("dlgNewFromTemplate"),_T("wxScrollingDialog"));
m_Wizards = Manager::Get()->GetPluginManager()->GetOffersFor(ptWizard);
wxListbook* lb = XRCCTRL(*this, "nbMain", wxListbook);
SetSettingsIconsStyle(lb->GetListView(), sisNoIcons);
/*
// create image lists
XRCCTRL(*this, "listProjects", wxListCtrl)->SetImageList(new wxImageList(32, 32), wxIMAGE_LIST_NORMAL);
XRCCTRL(*this, "listProjects", wxListCtrl)->SetImageList(new wxImageList(32, 32), wxIMAGE_LIST_SMALL);
XRCCTRL(*this, "listTargets", wxListCtrl)->SetImageList(new wxImageList(32, 32), wxIMAGE_LIST_NORMAL);
XRCCTRL(*this, "listTargets", wxListCtrl)->SetImageList(new wxImageList(32, 32), wxIMAGE_LIST_SMALL);
XRCCTRL(*this, "listFiles", wxListCtrl)->SetImageList(new wxImageList(32, 32), wxIMAGE_LIST_NORMAL);
XRCCTRL(*this, "listFiles", wxListCtrl)->SetImageList(new wxImageList(32, 32), wxIMAGE_LIST_SMALL);
XRCCTRL(*this, "listCustoms", wxListCtrl)->SetImageList(new wxImageList(32, 32), wxIMAGE_LIST_NORMAL);
XRCCTRL(*this, "listCustoms", wxListCtrl)->SetImageList(new wxImageList(32, 32), wxIMAGE_LIST_SMALL);
// load view prefs
XRCCTRL(*this, "rbView", wxRadioBox)->SetSelection(Manager::Get()->GetConfigManager(_T("new_from_template"))->ReadInt(_T("/view"), 0));
ChangeView();
BuildCategories();
BuildList();
// fill user templates list
XRCCTRL(*this, "lstUser", wxListBox)->Clear();
for (unsigned int i = 0; i < user_templates.GetCount(); ++i)
{
XRCCTRL(*this, "lstUser", wxListBox)->Append(user_templates[i]);
}
lb->SetSelection((int)initial);*/
}
You see, I have comment out all the operations on the dialog, but the wxListBook control still not shown correctly.
When I open the xrc in the wxsmith editor, I can see the default dialog should be like this (see the image shot below)
It looks like the option: Resize border should be enabled compared with other xrc, but when I enabled this, I still have this issue.
I can easily add a new button, but the wxListBook still not shown, I'm no idea how to fix it. (see the screen shot below)