size.y = sizeDpy.y / 5;
}
- wxWindow::Create(parent, id, pos, sizeOrig, style, name);
+ wxWindow::Create(NULL, id, pos, sizeOrig, style, name);
+ SetParent(parent);
+ if ( parent )
+ parent->AddChild(this);
wxTopLevelWindows.Append(this);
m_title = title;
-
- // FIXME_MGL -- should activate itself when shown!
return TRUE;
}
bool wxTopLevelWindowMGL::Show(bool show)
{
bool ret = wxTopLevelWindowBase::Show(show);
- if ( ret && show )
+ if ( ret && show && AcceptsFocus() )
SetFocus();
+ // FIXME_MGL -- don't do this for popup windows?
return ret;
}