From a47d16dc9f495a42f0aad524c5d715700d5d49d2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 23 Aug 2019 17:23:22 +0200 Subject: [PATCH] Document that wxTreeCtrl::ScrollTo() doesn't work when frozen Also mention that EnsureVisible() does work in this case. See #18435. --- interface/wx/treectrl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/interface/wx/treectrl.h b/interface/wx/treectrl.h index 1138f59d3f..f6ca003521 100644 --- a/interface/wx/treectrl.h +++ b/interface/wx/treectrl.h @@ -371,6 +371,9 @@ public: /** Scrolls and/or expands items to ensure that the given item is visible. + + This method can be used, and will work, even while the window is frozen + (see wxWindow::Freeze()). */ virtual void EnsureVisible(const wxTreeItemId& item); @@ -797,6 +800,11 @@ public: /** Scrolls the specified item into view. + + Note that this method doesn't work while the window is frozen (See + wxWindow::Freeze()), at least under MSW. + + @see EnsureVisible() */ virtual void ScrollTo(const wxTreeItemId& item);