// we don't want focus for ourselves
// virtual bool AcceptsFocus() const { return false; }
+ // Redo sizing after thawing
+ virtual void Thaw();
+
protected:
// choose the default border for this window
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
wxPoint(client_size.x, client_size.y),
wxSize(430,200),
m_notebook_style);
+ ctrl->Freeze();
wxBitmap page_bmp = wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16));
ctrl->AddPage( new wxTextCtrl( ctrl, wxID_ANY, wxT("Some more text"),
wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxNO_BORDER) , wxT("wxTextCtrl 8") );
+ ctrl->Thaw();
return ctrl;
}
if (!m_tabs)
return;
+ if (m_tabs->IsFrozen() || m_tabs->GetParent()->IsFrozen())
+ return;
+
m_tab_rect = wxRect(m_rect.x, m_rect.y, m_rect.width, m_tab_ctrl_height);
if (m_tabs->GetFlags() & wxAUI_NB_BOTTOM)
{
return false;
}
+void wxAuiNotebook::Thaw()
+{
+ DoSizing();
+
+ wxControl::Thaw();
+}
+
#endif // wxUSE_AUI