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:
@@ -19,6 +19,7 @@
|
||||
#include "wx/control.h"
|
||||
#include "wx/dynarray.h"
|
||||
|
||||
class wxRibbonBar;
|
||||
class wxRibbonArtProvider;
|
||||
|
||||
class WXDLLIMPEXP_RIBBON wxRibbonControl : public wxControl
|
||||
@@ -55,6 +56,8 @@ public:
|
||||
virtual bool Realize();
|
||||
bool Realise() {return Realize();}
|
||||
|
||||
virtual wxRibbonBar* GetAncestorRibbonBar()const;
|
||||
|
||||
// Finds the best width and height given the parent's width and height
|
||||
virtual wxSize GetBestSizeForParentSize(const wxSize& WXUNUSED(parentSize)) const { return GetBestSize(); }
|
||||
|
||||
|
Reference in New Issue
Block a user