Hi,

I need to make a dialog which has an expand/shrink button. When expanded, the user clicks the button to shrink the class to a point, when shrunk the user clicks the button to expand the dialog to its full size. I've tried to illustrate it below.

--------------------------------
| E |
|___________________|


--------------------------------
| S |
| |
| |
| |
|___________________|

How can this be done?