Add possibility to hide panels in wxRibbon.

Add wxRibbonBar::{Show,Hide}Panels() and ArePanelsShown() accessor.

Also add a toggle button to the sample to test the new functionality
(unfortunately it couldn't be done by a control in the ribbon itself as there
would be no way to show the panels back then).

Closes #12707.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-01-06 22:02:07 +00:00
parent 3a194bda7b
commit 3603e5658f
5 changed files with 66 additions and 1 deletions

View File

@@ -213,6 +213,35 @@ public:
for the currently active page, or @false if there is no active page.
*/
bool DismissExpandedPanel();
/**
Shows or hides the panel area of the ribbon bar.
If the panel area is hidden, then only the tab of the ribbon bar will
be shown. This is useful for giving the user more screen space to work
with when he/she doesn't need to see the ribbon's options.
@since 2.9.2
*/
void ShowPanels(bool show = true);
/**
Hides the panel area of the ribbon bar.
This method simply calls ShowPanels() with @false argument.
@since 2.9.2
*/
void HidePanels();
/**
Indicates whether the panel area of the ribbon bar is shown.
@see ShowPanels()
@since 2.9.2
*/
bool ArePanelsShown() const;
/**
Perform initial layout and size calculations of the bar and its