Login  Register

Re: [COTDC] - 24 DockingBarMorph

Posted by Stéphane Ducasse on Mar 05, 2011; 7:54am
URL: https://forum.world.st/COTDC-24-DockingBarMorph-tp3333791p3336367.html

I love the example in the comment

On Mar 4, 2011, at 9:00 AM, laurent laffont wrote:

> I'm a kind of container which adhere to one edge of the screen. See me in action with:
>
>
> DockingBarMorph new
> addMorph: (SimpleButtonMorph new
> label: 'Say hello';
> target: [UIManager inform: 'Hello'];
> actionSelector: #value);
> addMorph: (SimpleButtonMorph new
> label: 'Say bonjour';
> target: [UIManager inform: 'Bonjour'];
> actionSelector: #value);
> addMorph: (SimpleButtonMorph new
> label: 'Close';
> target: [DockingBarMorph allInstances last delete];
> actionSelector: #value);
> adhereToBottom;
> openInWorld.
>
>
> Laurent Laffont - @lolgzs
>
> Pharo Smalltalk Screencasts: http://www.pharocasts.com/
> Blog: http://magaloma.blogspot.com/
>
>
> On Thu, Mar 3, 2011 at 6:28 PM, laurent laffont <[hidden email]> wrote:
> Today:  DockingBarMorph
>
>
> Comment Of The Day Contest - One Day One Comment
> Rules:
> #1: Each day a not commented class is elected. Each day the best comment will be integrated with name of the author(s).
> #2: If you cannot comment it, deprecate it.
> Results: http://code.google.com/p/pharo/wiki/CommentOfTheDayContest
>
> Laurent
>