wxWindow::DoGetClientSize( width, height );
if (height)
{
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
/* menu bar */
if (m_frameMenuBar)
{
else
(*height) -= wxPLACE_HOLDER;
}
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
#if wxUSE_STATUSBAR
/* status bar */
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
/* menu bar */
if (m_frameMenuBar)
{
else
height += wxPLACE_HOLDER;
}
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
#if wxUSE_STATUSBAR
/* status bar */
* this hurts in the eye, but I don't want to call SetSize()
* because I don't want to call any non-native functions here. */
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
if (m_frameMenuBar)
{
int xx = m_miniEdge;
xx, yy, ww, hh );
client_area_y_offset += hh;
}
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
#if wxUSE_TOOLBAR
if ((m_frameToolBar) && m_frameToolBar->IsShown() &&
{
int xx = m_miniEdge;
int yy = m_miniEdge + m_miniTitle;
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
if (m_frameMenuBar)
{
if (!m_menuBarDetached)
else
yy += wxPLACE_HOLDER;
}
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
m_frameToolBar->m_x = xx;
m_frameToolBar->m_y = yy;
return;
}
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
if (m_frameMenuBar) m_frameMenuBar->OnInternalIdle();
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
#if wxUSE_TOOLBAR
if (m_frameToolBar) m_frameToolBar->OnInternalIdle();
#endif
wxWindow::DoGetClientSize( width, height );
if (height)
{
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
/* menu bar */
if (m_frameMenuBar)
{
else
(*height) -= wxPLACE_HOLDER;
}
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
#if wxUSE_STATUSBAR
/* status bar */
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
/* menu bar */
if (m_frameMenuBar)
{
else
height += wxPLACE_HOLDER;
}
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
#if wxUSE_STATUSBAR
/* status bar */
* this hurts in the eye, but I don't want to call SetSize()
* because I don't want to call any non-native functions here. */
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
if (m_frameMenuBar)
{
int xx = m_miniEdge;
xx, yy, ww, hh );
client_area_y_offset += hh;
}
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
#if wxUSE_TOOLBAR
if ((m_frameToolBar) && m_frameToolBar->IsShown() &&
{
int xx = m_miniEdge;
int yy = m_miniEdge + m_miniTitle;
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
if (m_frameMenuBar)
{
if (!m_menuBarDetached)
else
yy += wxPLACE_HOLDER;
}
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
m_frameToolBar->m_x = xx;
m_frameToolBar->m_y = yy;
return;
}
-#if wxUSE_MENUS
+#if wxUSE_MENUS_NATIVE
if (m_frameMenuBar) m_frameMenuBar->OnInternalIdle();
-#endif // wxUSE_MENUS
+#endif // wxUSE_MENUS_NATIVE
#if wxUSE_TOOLBAR
if (m_frameToolBar) m_frameToolBar->OnInternalIdle();
#endif
{
// 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