virtual bool Show(bool show = TRUE);
+ virtual bool HasFocus();
+
virtual void SetTitle( const wxString &title );
virtual wxString GetTitle() const { return m_title; }
virtual bool Show(bool show = TRUE);
+ virtual bool HasFocus();
+
virtual void SetTitle( const wxString &title );
virtual wxString GetTitle() const { return m_title; }
// Attracts the users attention to this window if the application is
// inactive (should be called when a background event occurs)
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
-
+
+ // Is this the active frame (highlighted in the taskbar)?
+ virtual bool HasFocus()
+ { return (wxGetTopLevelParent(FindFocus()) == this); }
// implementation only from now on
// -------------------------------
return do_shape_combine_region(window, region);
}
+bool wxTopLevelWindowGTK::HasFocus()
+{
+#ifdef __WXGTK20__
+ return GTK_WINDOW( m_widget )->has_toplevel_focus;
+#else
+ return ( wxGetTopLevelParent(FindFocus()) = this );
+#endif
+}
+
// vi:sts=4:sw=4:et
return do_shape_combine_region(window, region);
}
+bool wxTopLevelWindowGTK::HasFocus()
+{
+#ifdef __WXGTK20__
+ return GTK_WINDOW( m_widget )->has_toplevel_focus;
+#else
+ return ( wxGetTopLevelParent(FindFocus()) = this );
+#endif
+}
+
// vi:sts=4:sw=4:et