[Newbies] creating a browser
judaly at gmail.com
Sat Dec 2 16:29:23 UTC 2006
Thanks and will get back to you soon
From: beginners-bounces at lists.squeakfoundation.org
[mailto:beginners-bounces at lists.squeakfoundation.org] On Behalf Of Herbert
Sent: 02 December 2006 16:09
To: A friendly place to get answers to even the most basic questions
Subject: Re: [Newbies] creating a browser
JD> How do I go about creating a browser like the SystemBrowser?
this question is a bit general. Is it about how to create a tool that
browses classes or is it about crating a UI that contains of several
lists and text-panes?
If it is the latter:
find PluggableMorphsDemo.pr (or email me for it) this is how to make
Buttons, selection lists and texts work as part of a UI.
Then on www.wiki.squeak.org look for "how to layout submorphs". This
is about: you put a LayoutPolicy into a morph, which will make the
morphs you stick into the first morph layout in a certain way.
Often the first Morph is a SystemWindow. Beware, in spite of its name
TableLayout (which is one possible LayoutPolicy) is either a
horizontal layout or a vertical layout, not a table layout :-)).
Actually this is a big topic and more than I'm willing (maybe more
than I'm able) to write here is needed to cover it.
To browse some code, on the class side of class Inspector locate
openAsMorphOn:withLabel: where you at least will see that the first
element is a SystemWindow which by addMorh gets added several
Pluggable???Morph's which you'll find in the PluggableMorphsDemo.pr.
Maybe on the Swiki (link above) you can locate the documentation
project and they may have something better.
Keep going and come back with more specific questions!
Herbert mailto:herbertkoenig at gmx.net
Beginners mailing list
Beginners at lists.squeakfoundation.org
More information about the Beginners