git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29401
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- the XRC contrib library was moved to the core
- wx(Choice/List/Note)book controls send CHANG(ED/ING) events in SetSelection
- it is now possible to create a wxFont with given size in pixels (d2walter)
- the XRC contrib library was moved to the core
- wx(Choice/List/Note)book controls send CHANG(ED/ING) events in SetSelection
- it is now possible to create a wxFont with given size in pixels (d2walter)
+- added wxTopLevelWindow::IsActive()
See \helpref{wxTopLevelWindow::SetTitle}{wxtoplevelwindowsettitle}.
See \helpref{wxTopLevelWindow::SetTitle}{wxtoplevelwindowsettitle}.
+\membersection{wxTopLevelWindow::IsActive}\label{wxtoplevelwindowisactive}
+
+\constfunc{bool}{IsActive}{\void}
+
+Returns \true if this window is currently active, i.e. if the user is currently
+working with it.
+
+
\membersection{wxTopLevelWindow::Iconize}\label{wxtoplevelwindowiconize}
\func{void}{Iconize}{\param{bool}{ iconize}}
\membersection{wxTopLevelWindow::Iconize}\label{wxtoplevelwindowiconize}
\func{void}{Iconize}{\param{bool}{ iconize}}
virtual bool Show(bool show = TRUE);
virtual bool Show(bool show = TRUE);
- virtual bool HasFocus();
+ virtual bool IsActive();
virtual void SetTitle( const wxString &title );
virtual wxString GetTitle() const { return m_title; }
virtual void SetTitle( const wxString &title );
virtual wxString GetTitle() const { return m_title; }
virtual bool Show(bool show = TRUE);
virtual bool Show(bool show = TRUE);
- virtual bool HasFocus();
+ virtual bool IsActive();
virtual void SetTitle( const wxString &title );
virtual wxString GetTitle() const { return m_title; }
virtual void SetTitle( const wxString &title );
virtual wxString GetTitle() const { return m_title; }
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
// Is this the active frame (highlighted in the taskbar)?
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO);
// Is this the active frame (highlighted in the taskbar)?
- virtual bool HasFocus()
+ virtual bool IsActive()
{ return (wxGetTopLevelParent(FindFocus()) == this); }
// implementation only from now on
{ return (wxGetTopLevelParent(FindFocus()) == this); }
// implementation only from now on
return do_shape_combine_region(window, region);
}
return do_shape_combine_region(window, region);
}
-bool wxTopLevelWindowGTK::HasFocus()
+bool wxTopLevelWindowGTK::IsActive()
{
#ifdef __WXGTK20__
return GTK_WINDOW( m_widget )->has_toplevel_focus;
#else
{
#ifdef __WXGTK20__
return GTK_WINDOW( m_widget )->has_toplevel_focus;
#else
- return ( wxGetTopLevelParent(FindFocus()) = this );
+ return wxTopLevelWindowBase::IsActive();
return do_shape_combine_region(window, region);
}
return do_shape_combine_region(window, region);
}
-bool wxTopLevelWindowGTK::HasFocus()
+bool wxTopLevelWindowGTK::IsActive()
{
#ifdef __WXGTK20__
return GTK_WINDOW( m_widget )->has_toplevel_focus;
#else
{
#ifdef __WXGTK20__
return GTK_WINDOW( m_widget )->has_toplevel_focus;
#else
- return ( wxGetTopLevelParent(FindFocus()) = this );
+ return wxTopLevelWindowBase::IsActive();