Allow reparenting wxPropertyGrid(Manager) to work; Show error and suggest calling wxPropertyGrid::OnTLPChanging() if top-level parent changed indirectly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -528,6 +528,18 @@ void wxPropertyGridManager::SetWindowStyleFlag( long style )
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
bool wxPropertyGridManager::Reparent( wxWindowBase *newParent )
|
||||
{
|
||||
if ( m_pPropGrid )
|
||||
m_pPropGrid->OnTLPChanging((wxWindow*)newParent);
|
||||
|
||||
bool res = wxPanel::Reparent(newParent);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
// Actually shows given page.
|
||||
bool wxPropertyGridManager::DoSelectPage( int index )
|
||||
{
|
||||
|
Reference in New Issue
Block a user