Skip to Main Content Skip to Search
Product Documentation

uistack - Reorder visual stacking order of objects

Syntax

uistack(h)
uistack(h,stackopt)
uistack(h,stackopt,step)

Description

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:

uistack(h,stackopt,step) moves the objects specified by h up or down the number of levels specified by step.

See Set Tab Order in a Programmatic GUI in the MATLAB documentation for information about changing the tab order.

Examples

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)
  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS