Document that wxTreeCtrl::ScrollTo() doesn't work when frozen

Also mention that EnsureVisible() does work in this case.

See #18435.
This commit is contained in:
Vadim Zeitlin
2019-08-23 17:23:22 +02:00
parent 78c3ef2ebb
commit a47d16dc9f

View File

@@ -371,6 +371,9 @@ public:
/** /**
Scrolls and/or expands items to ensure that the given item is visible. 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); virtual void EnsureVisible(const wxTreeItemId& item);
@@ -797,6 +800,11 @@ public:
/** /**
Scrolls the specified item into view. 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); virtual void ScrollTo(const wxTreeItemId& item);