BEGIN_EVENT_TABLE(wxGenericCollapsiblePane, wxControl)
EVT_BUTTON(wxID_ANY, wxGenericCollapsiblePane::OnButton)
EVT_SIZE(wxGenericCollapsiblePane::OnSize)
-
- WX_EVENT_TABLE_CONTROL_CONTAINER(wxGenericCollapsiblePane)
END_EVENT_TABLE()
-WX_DELEGATE_TO_CONTROL_CONTAINER(wxGenericCollapsiblePane, wxControl)
-
void wxGenericCollapsiblePane::Init()
{
- WX_INIT_CONTROL_CONTAINER();
-
m_pButton = NULL;
m_pPane = NULL;
m_pStaticLine = NULL;
if (this->HasFlag(wxCP_NO_TLW_RESIZE))
{
- // the user asked to explicitely handle the resizing itself...
+ // the user asked to explicitly handle the resizing itself...
return;
}
if ( IsCollapsed() == collapse )
return;
+ InvalidateBestSize();
+
// update our state
m_pPane->Show(!collapse);