Make wxTLW::Raise() actually bring the window to the top

and give it the WM's focus (if supported).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2005-02-11 23:00:31 +00:00
parent a33203cb9f
commit a2ac55f54d
4 changed files with 22 additions and 0 deletions

View File

@@ -742,6 +742,15 @@ bool wxTopLevelWindowGTK::Show( bool show )
return wxWindow::Show( show );
}
void wxTopLevelWindowGTK::Raise()
{
#ifdef __WXGTK20__
gtk_window_present( GTK_WINDOW( m_widget ) );
#else
wxWindow::Raise();
#endif
}
void wxTopLevelWindowGTK::DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(width), int WXUNUSED(height) )
{
wxFAIL_MSG( wxT("DoMoveWindow called for wxTopLevelWindowGTK") );