Significantly improved wxPropertyGrid's top-level parent change detection code (fixes #10919)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-06-22 17:02:53 +00:00
parent 9aeace31b7
commit 6edd8829ef
3 changed files with 51 additions and 29 deletions

View File

@@ -894,8 +894,9 @@ public:
bool IsFrozen() const { return (m_frozen>0)?true:false; }
/**
Call this any time your code causes wxPropertyGrid's top-level parent
to change.
It is recommended that you call this function any time your code causes
wxPropertyGrid's top-level parent to change. wxPropertyGrid's OnIdle()
handler should be able to detect most changes, but it is not perfect.
@param newTLP
New top-level parent that is about to be set. Old top-level parent
@@ -1630,6 +1631,12 @@ protected:
// Last known top-level parent
wxWindow* m_tlp;
// Last closed top-level parent
wxWindow* m_tlpClosed;
// Local time ms when tlp was closed.
wxLongLong m_tlpClosedTime;
// Sort function
wxPGSortCallback m_sortFunction;