IsShown() now returns false for non-selected wxNotebook pages, see #4343

This commit is contained in:
Paul Cornett 2015-08-15 11:04:20 -07:00
parent 34b53e13f9
commit 9cfda3ca4d
2 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public:
virtual void Lower() wxOVERRIDE;
virtual bool Show( bool show = true ) wxOVERRIDE;
virtual bool IsShown() const wxOVERRIDE;
virtual bool IsRetained() const wxOVERRIDE;

View File

@ -3329,6 +3329,12 @@ bool wxWindowGTK::Show( bool show )
return true;
}
bool wxWindowGTK::IsShown() const
{
// return false for non-selected wxNotebook pages
return m_isShown && (m_widget == NULL || gtk_widget_get_child_visible(m_widget));
}
void wxWindowGTK::DoEnable( bool enable )
{
wxCHECK_RET( (m_widget != NULL), wxT("invalid window") );