git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37167
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
gs_fontDefault = new wxFont(10, wxSWISS, wxNORMAL, wxNORMAL, false, "Arial");
return *gs_fontDefault;
}
gs_fontDefault = new wxFont(10, wxSWISS, wxNORMAL, wxNORMAL, false, "Arial");
return *gs_fontDefault;
}
case wxSYS_VSCROLL_X:
case wxSYS_HSCROLL_Y:
return 15;
case wxSYS_VSCROLL_X:
case wxSYS_HSCROLL_Y:
return 15;
}
return -1; // unsupported metric
}
return -1; // unsupported metric
return false;
case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
return false;
return false;
case wxSYS_CAN_DRAW_FRAME_DECORATIONS:
return false;
-#include "wx/defs.h"
-#include "wx/toplevel.h"
-#include "wx/app.h"
+#ifndef WX_PRECOMP
+ #include "wx/defs.h"
+ #include "wx/toplevel.h"
+ #include "wx/app.h"
+#endif // WX_PRECOMP
+
#include "wx/mgl/private.h"
// ----------------------------------------------------------------------------
#include "wx/mgl/private.h"
// ----------------------------------------------------------------------------
if (wxTheApp->GetTopWindow() == this)
wxTheApp->SetTopWindow(NULL);
if (wxTheApp->GetTopWindow() == this)
wxTheApp->SetTopWindow(NULL);
- if ((wxTopLevelWindows.Number() == 0) &&
- (wxTheApp->GetExitOnFrameDelete()))
+ if (wxTopLevelWindows.IsEmpty() &&
+ wxTheApp->GetExitOnFrameDelete())
{
wxTheApp->ExitMainLoop();
}
{
wxTheApp->ExitMainLoop();
}
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/univ/menu.cpp
// Purpose: wxMenuItem, wxMenu and wxMenuBar implementation
// Author: Vadim Zeitlin
// Modified by:
// Purpose: wxMenuItem, wxMenu and wxMenuBar implementation
// Author: Vadim Zeitlin
// Modified by:
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/control.h" // for FindAccelIndex()
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/control.h" // for FindAccelIndex()
#include "wx/log.h"
#endif // WX_PRECOMP
#include "wx/log.h"
#endif // WX_PRECOMP
#include "wx/popupwin.h"
#include "wx/evtloop.h"
#include "wx/dcclient.h"
#include "wx/popupwin.h"
#include "wx/evtloop.h"
#include "wx/dcclient.h"
bool wxMenuBar::ReleaseMouseCapture()
{
bool wxMenuBar::ReleaseMouseCapture()
{
// With wxX11, when a menu is closed by clicking away from it, a control
// under the click will still get an event, even though the menu has the
// capture (bug?). So that control may already have taken the capture by
// With wxX11, when a menu is closed by clicking away from it, a control
// under the click will still get an event, even though the menu has the
// capture (bug?). So that control may already have taken the capture by