[Newbies] opening tools with buttons
chris at funkyobjects.org
Mon May 15 15:50:07 UTC 2006
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 Kassopulo <cpulo at earthlink.net> wrote:
> Using the SimpleButtonMorph class I can create a button
> that opens something like so:
> MySimpleButtonMorph new
> send: #open to: Transcript;
> label: 'Transcript';
> 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?
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners