Add GetPanel(), GetPanelById() and GetPanelCount() to ribbon page

This provides parity with the ribbon bar's GetPage() set of functions,
and adds an easy way to find a panel and show/hide it.

Also, add example and discussion about showing/hiding panels on a
ribbon.

Closes #24319.
This commit is contained in:
Blake Madden 2024-02-14 06:25:56 -05:00 committed by Vadim Zeitlin
parent 1864a49dd2
commit 3f7e1e8414
4 changed files with 98 additions and 3 deletions

View file

@ -62,6 +62,10 @@ public:
void HideIfExpanded();
wxRibbonPanel* GetPanel(int n);
wxRibbonPanel* GetPanelById(wxWindowID id);
size_t GetPanelCount();
protected:
virtual wxSize DoGetBestSize() const override;
virtual wxBorder GetDefaultBorder() const override { return wxBORDER_NONE; }