<h2>5: Using layouts inside GUIDE GUIs <Ahref="User_guide.html"><imgsrc="Images/uparrow.png"border="0"align="top"alt="Go back up one level"/></A></h2>
<p>Whilst the layouts in this toolbox do not integrate into the
MATLAB Graphical User Interface Design Environment (<ahref="matlab:doc GUIDE"><codeclass="FUNCTION">GUIDE</code></a>), it
is possible to insert layouts into a GUIDE-built GUI as follows:</p>
<h4>Create the GUIDE GUI</h4>
<p>Create you GUIDE application as usual, placing a panel where you
want to insert the layout. You can turn the panel border and title
off if you do not want them.</p>
<center><imgsrc="Images/guide1.png"/></center>
<h4>Insert the layout</h4>
<p>Edit the "OpeningFcn" in the GUIDE-created code and insert your
layout into the panel, making it fill the space. In the example below
four boxpanels are inserted into a grid, which itself is placed inside
<code>uipanel1</code>:</p>
<example>
<prestyle="background-color: #eeeeff; margin-left: 20px; margin-right: 20px"><fontcolor="#000011"><codeclass="COMMENT">% --- Executes just before guideApp is made visible.</code>
<tdwidth="40%"height="15"bgcolor="#e4f0f8"align="left"><ahref="User_guide4_3.html"><fontface="arial"bgcolor="#e4f0f8"size="normal"underline="0"color="#000000">Dock and undock</font></a></td>
<tdwidth="40%"height="15"bgcolor="#e4f0f8"align="right"><ahref="User_guide6.html"><fontface="arial"bgcolor="#e4f0f8"size="normal"underline="0"color="#000000">Deploying GUIs using the MATLAB Compiler</font></a></td>