The ( not intuitive )  thing I spent a full hour to understand is on :

LayoutFrame
        fractions: ([email protected] corner: 1...@1)

0.99 means "do not show splitter" as in SystemWindow>>addMorph:fullFrame:

aLayoutFrame topFraction = 0
ifTrue: [aLayoutFrame topOffset: top]
ifFalse: [aLayoutFrame topFraction = 1 ifFalse: [
 aLayoutFrame topOffset: top + ProportionalSplitterMorph splitterWidth]].



May be PluggablePanelMorph>>addMorph:fullFrame: should have an equivalent
implementation as in SystemWindow for more consistency .... but I've just
start learning morphic so I think there's better ways to achieve the same
layout as in the screencast.

Laurent

On Fri, Jan 8, 2010 at 9:58 PM, Stéphane Ducasse
<[email protected]>wrote:

> I found that the addMorph: fullFrame: nil
> to indicate that the button expand into it container is not really a sexy
> interface.
>
>
> On Jan 8, 2010, at 9:01 PM, laurent laffont wrote:
>
> > Hi,
> >
> > as I'm beginning to understand how to write a GUI in Pharo, I've made a
> screencast to show basic layout techniques with panels and buttons:
> >
> > http://vimeo.com/8619593
> >
> > (or on my blog :) with source code
> http://magaloma.blogspot.com/2010/01/gui-et-pharo.html )
> >
> >
> > It seems that several people have or plan to record screencasts on Pharo.
> If you can send me links, I can put all of them on a single blog. For
> example http://pharocasts.org ;).
> >
> > Cheers,
> >
> > Laurent
> > _______________________________________________
> > Pharo-project mailing list
> > [email protected]
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to