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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user