Got dialog sizing to work, downsized fonts a bit (though it always returns

the same standard font right now)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-02-26 21:58:07 +00:00
parent bc55104d9a
commit c2ff68d3fd
6 changed files with 62 additions and 4 deletions

View File

@@ -153,6 +153,18 @@ bool wxDialog::Show(bool show)
EndModal(wxID_CANCEL);
}
// Not sure how to put this in platform-specific
// code just yet. Nano-X has to force a size event,
// else there's no initial size.
#if wxUSE_NANOX
if (show)
{
wxSizeEvent event(GetSize(), GetId());
event.SetEventObject(this);
GetEventHandler()->ProcessEvent(event);
}
#endif
bool ret = wxDialogBase::Show(show);
if ( show )