[Newbies] opening tools with buttons

Chris Muller chris at funkyobjects.org
Mon May 15 15:50:07 UTC 2006

Greetings Chris,

I don't know whether you are more interested in the code or the end
result but..  another way to get these "buttons" without any code is to
make a duplicate of the menu/tool button via Morphics "duplicate" halo.

1.  click on the desktop, World menu appears.
2.  click on "open..." - open menu appears
3.  middle-click (or command+click) on a particular menu item TWICE
(once for the entire menu, again for the menu item) - Morphic halos
appear around that menu item.
4.  click and drag out from the green "duplicate" halo.

The same procedure can be applied to the ones on the tools flap.

 - Chris

--- Chris Kassopulo <cpulo at earthlink.net> wrote:

> Greetings,
> Using the SimpleButtonMorph class I can create a button
> that opens something like so:
> MySimpleButtonMorph new
>   send: #open to: Transcript;
>   label: 'Transcript';
>   openInHand.
> send: #open to: Transcript
> send: #open to: Workspace
> send: #open to: ProcessBrowser
> send: #open to: Celeste
> send: #open to: Scamper
> send: #openBrowser to: PackagePaneBrowser
> send: #openBrowser to: Browser            "System Browser"
> all work.
> How do I get at the other items in the Tools flap?
> Thanks,
> Chris
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

More information about the Beginners mailing list