How create a button to jump to the parent project
Last updated at 10:16 am UTC on 3 April 2019
Construction by code
Paste the following code snippet into a Workspace, select the code and evaluate it.
This will create a button which will make Squeak enter the parent project of the current Project.
| btn |
btn := SimpleButtonMorph new.
btn target: Project. "(a class)"
btn label: 'up'.
btn position: 20 @ (Display height - 40).
btn actionSelector: #returnToParentProject.
Construction with direct manipulation
First past the following into a Workspace
Then choose the menu 'button for it'.
Bring up the halos and
Choose the red one and change the label.