m_virtualSize = wxDefaultSize;
+ m_scrollHelper = (wxScrollHelper *) NULL;
+
m_minVirtualWidth =
m_maxVirtualWidth = wxDefaultCoord;
m_minVirtualHeight =
wxASSERT_MSG( GetChildren().GetCount() == 0, wxT("children not destroyed") );
+ // reset the top-level parent's default item if it is this widget
+ if ( m_parent )
+ {
+ wxTopLevelWindow *tlw = wxDynamicCast(wxGetTopLevelParent((wxWindow*)this),
+ wxTopLevelWindow);
+
+ if ( tlw && tlw->GetDefaultItem() == this )
+ tlw->SetDefaultItem(NULL);
+ if ( tlw && tlw->GetTmpDefaultItem() == this )
+ tlw->SetTmpDefaultItem(NULL);
+ }
+
// reset the dangling pointer our parent window may keep to us
if ( m_parent )
{
}
}
-bool wxWindowBase::IsVisible() const
+bool wxWindowBase::IsShownOnScreen() const
{
- return IsShown() && (GetParent() == NULL || GetParent()->IsVisible());
+ return IsShown() &&
+ (GetParent() == NULL || GetParent()->IsShownOnScreen());
}
// ----------------------------------------------------------------------------
return wxACC_NOT_IMPLEMENTED;
}
+#if wxUSE_VARIANT
// Gets a variant representing the selected children
// of this object.
// Acceptable values:
return wxACC_NOT_IMPLEMENTED;
}
+#endif // wxUSE_VARIANT
#endif // wxUSE_ACCESSIBILITY