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
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@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@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Hi Chris,
I'm interested in the code that the buttons use to message. I'd like to generate my own buttons. I'm suprised it is not more obvious.
Chris
On Mon, 2006-05-15 at 08:50 -0700, Chris Muller wrote:
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.
- click on the desktop, World menu appears.
- click on "open..." - open menu appears
- 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@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@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org