unsuccessful attempts to fix wxMenuBar positioning under wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-08-14 12:57:32 +00:00
parent 70541533c8
commit 75c9da2562
3 changed files with 31 additions and 22 deletions

View File

@@ -84,10 +84,19 @@ void wxFrame::PositionMenuBar()
{
// the menubar is positioned above the client size, hence the negative
// y coord
m_frameMenuBar->SetSize(0, -m_frameMenuBar->GetSize().y,
GetClientSize().x, -1);
wxCoord heightMbar = m_frameMenuBar->GetSize().y;
m_frameMenuBar->SetSize(0,
// FIXME: why doesn't this work as expected in wxGTK??
#ifdef __WXGTK__
0,
#else
-heightMbar,
#endif
GetClientSize().x, heightMbar);
}
}
#endif // wxUSE_MENUS
wxPoint wxFrame::GetClientAreaOrigin() const