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:
parent
1864a49dd2
commit
3f7e1e8414
4 changed files with 98 additions and 3 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue