<div><br></div><div><br><div class="gmail_quote">On Thu, Jun 17, 2010 at 8:37 AM, Jeff G <span dir="ltr">&lt;<a href="mailto:jgon.in.canada@gmail.com">jgon.in.canada@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Everyone,<br><br>So I am working on porting over a small simulation I wrote for fun in java to squeak, and I am actually stuck at a point before I can get any real work done.  The basics of the user interface I would like to offer consist of a SystemWindow containing a custom morph that will handle all of the drawing and updating of the simulation, and some buttons for altering the parameters of the simulation.  The morph would take up the largest portion of the screen, say 3/4.<br>


<br>I have been wrestling with SystemWindow and Toolbuilder for the last little while and I feel like I must be overlooking something easy to get started with.  If I create a system window and add a placeholder morph to it, with a frame of (0@0 corner: 0.5@1) the window becomes blue as it takes on the color of the morph I added and the morph itself becomes white.  I would like the morph to retain its color when I add it to the window, and not have the window alter its own color either.<br>


<br>Second, if I were to add to morphs side by side, one with a frame of (0@0 corner: 0.5@1) and the other with (0.5@0 corner: 1@1), then I will have a splitter in between the morphs and any attempt to drag this splitter results in a debugger popping up.<br>


<br>I have been attempting to learn Toolbuilder, but it seems very focused on just that, tools, and I didn&#39;t see an appropriate spec for adding just a custom subclass of morph.  I may have overlooked something easy here to do so, and so my spec would consist of a pluggableWindow, with its children being a pluggablePanelSpec with pluggableButtons as its children, and some other spec representing the custom morph as the second child of the windowSpec.<br>


<br>Any help or pointers towards creating a basic system window with a morph, or a couple of morphs in it, respecting colors and layouts, and being resized with the splitters would be greatly appreciated.<br><br>Thank you very much for your time,<br>

</blockquote><div><br></div><div>Hi,</div><div><br></div><div>Take a look at:</div><div>- <a href="http://pharocasts.blogspot.com/search/label/gui">http://pharocasts.blogspot.com/search/label/gui</a> </div><div>- <a href="http://book.pharo-project.org/book/GUI/PolymorphTutorial/Layout/">http://book.pharo-project.org/book/GUI/PolymorphTutorial/Layout/</a></div>

<div>- <a href="http://book.pharo-project.org/book/GUI/TypicalPolymorphApplication">http://book.pharo-project.org/book/GUI/TypicalPolymorphApplication</a></div><div><br></div>Cheers,<div><br clear="all">Laurent Laffont<br>

<br><a href="http://pharocasts.blogspot.com/">http://pharocasts.blogspot.com/</a><br></div><div><a href="http://magaloma.blogspot.com/">http://magaloma.blogspot.com/</a></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<font color="#888888">
Jeff G!<br>
</font><br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>