<h2>4.2: Minimize and maximize <a href="User_guide4.html"><img src="Images/uparrow.png" border="0" align="top" alt="Go back up one level"/></a></h2>
<p>
When a <a href="uix.BoxPanel.html"><code class="FUNCTION">uix.BoxPanel</code></a> has its <code>MinimizeFcn</code>
filled in, a minimize/maximize button (▴/▾) is shown in the upper-right of the
title-bar. When the user clicks this button the specified function
is called. Since the behaviour of the parent container is
different in different use-cases, it is up to the user to write
some code to actually resize the panel. Note that minimizing
a panel to its title-bar only really makes sense inside a
<a href="uix.VBox.html"><code class="FUNCTION">uix.VBox</code></a> or <a href="uix.VBoxFlex.html"><code class="FUNCTION">uix.VBoxFlex</code></a>.
</p>
<p>The following simple example shows how to add minimize/maximize
functionality to a box full of panels. Save the code into