<div dir="ltr"><div>Hi,</div><div>What you are trying to do is better accomplished in a browser.</div><div>There you can more easily subclass a morph and put in break points to see what is happening etc.</div><div><br></div><div>While you can do much of this from a Workspace it's reccommended to learn to use a browser.</div><div>There is better tool support for maintaining code etc.<br></div><div><br></div><div>See example in attachment.</div><div><br></div><div>TestMorph new openInWorld</div><div><br></div><div>This morph will halt and open a debugger once you either click on it or use the keyboard once it has keyboard focus.<br></div><div>In the debugger you can see what messages and values are sent to the morph etc.<br></div><div><br></div><div>Use this to browse the code:<br>TestMorph browse <br></div><div><br></div><div><img src="cid:ii_lejrga6b1" alt="image.png" width="488" height="308"><br><br></div><div>Best,</div><div>Karl<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 25, 2023 at 8:21 AM Eduardo Ochs <<a href="mailto:eduardoochs@gmail.com">eduardoochs@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi list,<br><br>I need to ask for more pointers... =(<br><br>Now I know how to debug what happens when I send certain keys to<br>certains morphs. My code is here - not on the wiki yet, sorry -<br><br> <a href="http://anggtwu.net/eev-squeak.html#key-events" target="_blank">http://anggtwu.net/eev-squeak.html#key-events</a><br><br>and I am using that to learn how lots of things work. But the morphs<br>seem to fall in several different families, each one with a different<br>way of initializing... for morphs like these ones I can just use<br>openInWorld,<br><br> sm := SimpleSwitchMorph new.<br> sm openInWorld.<br> bm := SimpleButtonMorph new.<br> bm openInWorld.<br> bm position: bm position + (0@32).<br> rm := RectangleMorph new.<br> rm openInWorld.<br> rm position: rm position + (0@64).<br><br>but for SelectorBrowser I need to use "prototypicalToolWindow" instead<br>of new, and there are other ones, like SearchBar, that I don't know<br>how to create a new morph of that kind...<br><br>Where can I learn more about that? And where do people usually learn<br>how to create interfaces in which a single window displays several<br>subwindows and subwidgets? In Tcl/Tk this is considered basic... here<br>is an example of this "this": the code below<br><br> frame .top<br> frame .bottom<br> text .textbox -width 10 -height 5<br> listbox .listbox -width 10 -height 5<br> button .button1 -text B1<br> button .button2 -text B2<br> button .button3 -text B3<br> .textbox insert end "Foo\nBar"<br> .listbox insert end "Item 1"<br> .listbox insert end "Item 2"<br> .listbox insert end "Item 3"<br> pack .top -side top<br> pack .bottom -side bottom -fill x -expand 1<br> pack .listbox -side left -in .top<br> pack .textbox -side right -in .top<br> pack .button1 -side left -in .bottom -fill x -expand 1<br> pack .button2 -side left -in .bottom -fill x -expand 1<br> pack .button3 -side left -in .bottom -fill x -expand 1<br><br>creates the window in this screenshot:<br><br> <a href="https://i.ibb.co/ZcZGRjW/sshot.png" target="_blank">https://i.ibb.co/ZcZGRjW/sshot.png</a><br><br>Thanks in advance! =)<br> Eduardo Ochs<br> <a href="http://anggtwu.net/eev-squeak.html" target="_blank">http://anggtwu.net/eev-squeak.html</a><br><div><br></div></div>
<br>
</blockquote></div>