tons of fixes for wxGTK/Univ - seems to work, more or less, now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-03 19:38:19 +00:00
parent 67d95e11cf
commit 3379ed3789
56 changed files with 1315 additions and 932 deletions

View File

@@ -68,19 +68,22 @@ wxFrame::wxFrame(wxWindow *parent,
}
// ----------------------------------------------------------------------------
// geometry
// menu support
// ----------------------------------------------------------------------------
void wxFrame::OnSize(wxSizeEvent& event)
{
#if wxUSE_MENUS
PositionMenuBar();
#endif // wxUSE_WAVE
event.Skip();
}
#if wxUSE_MENUS
void wxFrame::PositionMenuBar()
{
#if wxUSE_MENUS
if ( m_frameMenuBar )
{
// the menubar is positioned above the client size, hence the negative
@@ -88,9 +91,10 @@ void wxFrame::PositionMenuBar()
m_frameMenuBar->SetSize(0, -m_frameMenuBar->GetSize().y,
GetClientSize().x, -1);
}
#endif // wxUSE_MENUS
}
#endif // wxUSE_MENUS
wxPoint wxFrame::GetClientAreaOrigin() const
{
wxPoint pt = wxFrameNative::GetClientAreaOrigin();