Thanks for the amazingly quick and completely correct reply.<br><br>Cheers<br>Stephen<br><br><div><span class="gmail_quote">On 9/21/07, <b class="gmail_sendername">Matthew Flatt</b> <<a href="mailto:mflatt@cs.utah.edu">
mflatt@cs.utah.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">At Fri, 21 Sep 2007 14:35:04 +0100, "Stephen De Gabrielle" wrote:
<br>> I'm trying my hand at making a simple widget.<br>><br>> I've done something wrong and it is twice as high as it should be.<br>><br>> Please look at my code below and let me know where I have gone wrong.
<br><br>You are creating four widgets:<br><br> * A frame that contains<br><br> * A pane (of min height 200)<br><br> * A pane that contains<br><br> * A canvas (of min height 200)<br><br>Since the canvas is not nested in the first pane, the frame is
<br>constrained to be 400 pixels tall.<br><br>I think you probably meant to make the canvas a child of the first<br>pane, instead of having two panes. To do that, move the<br>`super-instantiate' for the enclosing pane% class to before the
<br>creation of the canvas% instance, and get rid of the `pane' definition,<br>and change the `parent' canvas% argument from `pane' to `this'.<br><br>Matthew<br><br></blockquote></div><br><br clear="all"><br>
-- <br>Cheers,<br><br>Stephen<br><br><br><br>--<br>Stephen De Gabrielle<br><a href="mailto:s.degabrielle@ucl.ac.uk">s.degabrielle@ucl.ac.uk</a><br>Telephone +44 (0)20 7679 5242 (x45242)<br>Mobile 079 851 890 45
<br><a href="http://www.uclic.ucl.ac.uk/annb/MaSI.html">http://www.uclic.ucl.ac.uk/annb/MaSI.html</a><br>University College London Interaction Centre<br>Remax House - 31/32 Alfred Place<br>London - WC1E 7DP