if (p->HasFlag(wxCP_NO_TLW_RESIZE))
{
+ // fire an event
+ wxCollapsiblePaneEvent ev(p, p->GetId(), p->IsCollapsed());
+ p->GetEventHandler()->ProcessEvent(ev);
+
// the user asked to explicitely handle the resizing itself...
return;
}
if ( top && top->GetSizer() )
{
// 2) recalculate minimal size of the top window
- wxSize sz = top->GetSizer()->CalcMin();
+ sz = top->GetSizer()->CalcMin();
if (top->m_mainWidget)
{
return wxGenericCollapsiblePane::Create(parent, id, label,
pos, size, style, val, name);
- m_needParent = true;
m_bIgnoreNextChange = false;
if ( !PreCreation( parent, pos, size ) ||