Creating Graphical User Interfaces Previous page   Next Page

Setting the Tab Order Programmatically

You can set the tab order programmatically by reordering the children in the Children property of the figure or of a container such as a uipanel.

  1. Get the vector of children of the GUI figure with a command similar to
  2. Permute the HandlesOfChildren vector to suit your needs. For instance, to reverse the tab order:
  3. Reassign the permuted vector to the Children property of the figure:


Previous page  Setting the Tab Order Programming GUIs Next page

© 1994-2005 The MathWorks, Inc.