Add wxRibbonControl::GetAncestorRibbonBar() helper.

New method allowing to find the ribbon bar containing the given window.

See #14283.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-06-03 19:17:03 +00:00
parent 017dc06b50
commit 07c7226468
3 changed files with 25 additions and 0 deletions

View File

@@ -148,6 +148,15 @@ public:
*/
bool Realise();
/**
Get the first ancestor which is a wxRibbonBar (or derived) or NULL
if not having such parent.
@since 2.9.4
*/
virtual wxRibbonBar* GetAncestorRibbonBar()const;
/**
Finds the best width and height given the parent's width and height.
Used to implement the wxRIBBON_PANEL_FLEXIBLE panel style.