- // Do TLP check, recommend use of OnTLPChanging()
- wxWindow* tlp = ::wxGetTopLevelParent(this);
- if ( tlp == m_tlp )
- {
- m_tlp->Disconnect( wxEVT_CLOSE_WINDOW,
- wxCloseEventHandler(wxPropertyGrid::OnTLPClose),
- NULL, this );
- }
- else if ( tlp )
- {
- wxLogError("Top-level parent of wxPropertyGrid has changed. "
- "Consider calling wxPropertyGrid::OnTLPChanging() "
- "when appropriate.");
- }