void wxSizerItem::DeleteWindows()
{
if (m_window)
+ {
m_window->Destroy();
+ m_window = NULL;
+ }
if (m_sizer)
m_sizer->DeleteWindows();
if (item->GetWindow() == window)
{
- item->SetInitSize( width, height );
- item->GetWindow()->SetSizeHints(width, height);
+ item->SetMinSize( width, height );
return true;
}
node = node->GetNext();
else
{
// ... but the minimal size of spacers and windows in stored in them
- item->SetInitSize( width, height );
- if (item->GetWindow())
- item->GetWindow()->SetSizeHints(width, height);
+ item->SetMinSize( width, height );
}
return true;
return ret;
}
+void wxStaticBoxSizer::ShowItems( bool show )
+{
+ m_staticBox->Show( show );
+ wxBoxSizer::ShowItems( show );
+}
+
#endif // wxUSE_STATBOX
// ----------------------------------------------------------------------------