Add wxAuiTabCtrl::DoShowTab() helper

No real changes, just add a function ensuring that the tab is shown.

It's not really clear why the existing code sometimes calls
MakeTabVisible() after SetActivePage() and sometimes doesn't, and
perhaps it should actually always do it, in which case this function
could be merged with SetActivePage() to do everything at once, but for
now keep the changes minimal.
This commit is contained in:
Vadim Zeitlin 2024-01-03 19:05:51 +01:00
parent b66d0a640d
commit 3de2e479fc
2 changed files with 11 additions and 5 deletions

View file

@ -210,6 +210,9 @@ public:
void SetRect(const wxRect& rect) { wxAuiTabContainer::SetRect(rect, this); }
// Internal helper.
void DoShowTab(int idx);
protected:
// choose the default border for this window
virtual wxBorder GetDefaultBorder() const override { return wxBORDER_NONE; }