| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
uistack(h)
uistack(h,stackopt)
uistack(h,stackopt,step)
uistack(h) raises the visual stacking order of the objects specified by the handles in h by one level (step of 1). All handles in h must have the same parent.
uistack(h,stackopt) moves the objects specified by h in the stacking order, where stackopt is one of the following:
'up' – moves h up one position in the stacking order
'down' – moves h down one position in the stacking order
'top' – moves h to the top of the current stack
'bottom' – moves h to the bottom of the current stack
uistack(h,stackopt,step) moves the objects specified by h up or down the number of levels specified by step.
Note In a GUI, axes objects are always at a lower level than uicontrol objects. You cannot stack an axes object on top of a uicontrol object. |
See Setting Tab Order in the MATLAB documentation for information about changing the tab order.
The following code moves the child that is third in the stacking order of the figure handle hObject down two positions.
v = allchild(hObject) uistack(v(3),'down',2)
![]() | uisetpref | uitable | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |