How can I reorder a stack of panels if the figure's menubar property is set to 'none'?

1 view (last 30 days)
The uistack command seems to fail when a figure's menubar property is set to 'none'. The easiest way to see this apparent bug is with this MATLAB example: https://www.mathworks.com/help/matlab/ref/uistack.html
In the example, a figure is created with two stacked panels. Each panel has an axis containing a plot. You can then use uistack(panelHandle) to move your panel of choice to the top of the stack, making it visible.
If you set the figure's 'menubar' property to 'none', the visible panels no longer respond to the uistack command. The order of the panels rearranges correctly in the 'Children' property of the figure, so it may be a rendering issue. Explicitly calling drawnow; does not help. I tested this in MATLAB r2011a-32 bit, r2013b-64bit and r2014a-64bit on a Windows 7 PC.
Is there a way to make uistack work on components of a figure without a menubar?
Thanks, Josh

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!