Add wxRibbonBar::GetPageById()
To find a page by ID currently you have to use a recursive FindWindow (which would also look at the child Panel windows). This function allows for finding a page by ID more elegantly. Closes #24211.
This commit is contained in:
parent
ee691af12d
commit
567f8c47af
3 changed files with 20 additions and 0 deletions
|
|
@ -303,6 +303,15 @@ public:
|
|||
*/
|
||||
wxRibbonPage* GetPage(int n);
|
||||
|
||||
/**
|
||||
Get a page by window ID.
|
||||
|
||||
@NULL will be returned if no page with the ID is found.
|
||||
|
||||
@since 3.3.0
|
||||
*/
|
||||
wxRibbonPage* GetPageById(wxWindowID id);
|
||||
|
||||
/**
|
||||
Get the number of pages in this bar.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue