4.1 GUI Changes - Buttons not working in my code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

4.1 GUI Changes - Buttons not working in my code

Torsten Bergmann
Jon wrote:
>Just as a followup - without the alignment morph, buttons work fine.
>But I really like being able to group together things like buttons...

Maybe you should use layouts (LayoutFrame) instead of alignment morphs
to construct the UI.

See
[1] http://pharocasts.blogspot.com/2010/06/proportional-layout.html
[2] http://book.pharo-project.org/book/GUI/PolymorphTutorial/Layout
[3] http://pharocasts.blogspot.com/2010/01/basic-ui-building.html

The links are for Pharo but Squeak has them too.

Bye
T.
--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl

Reply | Threaded
Open this post in threaded view
|

Re: 4.1 GUI Changes - Buttons not working in my code

Jon Hylands
On Thu, 24 Jun 2010 16:38:25 +0200, "Torsten Bergmann"
<[hidden email]> wrote:

>Maybe you should use layouts (LayoutFrame) instead of alignment morphs
>to construct the UI.

I'm actually using both - I find it handy to lay out the main areas on
the screen with LayoutFrame, but then the parts inside each with
alignment morphs. I suppose I could try using child layout frames, but
I've got about 25-30 existing GUIs that I'd rather just be able to
have work, without having to do extensive changes right now.

I finally figured out how to make it work - I replaced AlignmentMorph
with BorderedMorph, and it seems to be working again.

Later,
Jon