]> git.saurik.com Git - wxWidgets.git/commitdiff
give focus to show top level windows
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Oct 2001 14:33:30 +0000 (14:33 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Oct 2001 14:33:30 +0000 (14:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mgl/toplevel.h
src/mgl/toplevel.cpp

index 8ed3a91b607d24a868dedc9f912156d6276b6857..859d9a3849fc12757935cdb58760fcc5396f0cdc 100644 (file)
@@ -58,6 +58,8 @@ public:
     virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
     virtual bool IsFullScreen() const { return m_fsIsShowing; }
 
+    virtual bool Show(bool show = TRUE);
+
     virtual void SetTitle(const wxString &title) { m_title = title; }
     virtual wxString GetTitle() const { return m_title; }
 
index 5829d32f97977a90841ede5f57fea39502e4383f..1cf60d5e6f7469f68c4e6171f459de0b0a280cc1 100644 (file)
@@ -136,6 +136,14 @@ bool wxTopLevelWindowMGL::ShowFullScreen(bool show, long style)
     return TRUE;
 }
 
+bool wxTopLevelWindowMGL::Show(bool show)
+{
+    bool ret = wxTopLevelWindowBase::Show(show);
+    if ( ret && show )
+        SetFocus();
+    return ret;
+}
+
 void wxTopLevelWindowMGL::Maximize(bool maximize)
 {
     if ( maximize && !m_isMaximized )