-
Notifications
You must be signed in to change notification settings - Fork 1
Place Morphs in World as you wish, automatically
Problem. Every time I run Cuis I need to place again and again my Windows as I like most, there must be a better way.
Solution. Find the position of a Morph in the World and change it, via code. Then put that code in the startup script. Here I show only how to find and change a Window (Morph) position.
". open a new Browser, for example"
b1 _ BrowserWindow openBrowser .
". move it where you like most, then watch its coordinate in the world"
b1 morphPositionInWorld . "=> 57.0@747.0 "
b1 morphExtentInWorld . "=> 1188@733 "
". now close that browser"
". open another browser at the desired position "
(BrowserWindow openBrowser) morphPosition: 57@747 extent: 1188@733.
The same procedure holds for all other Morphs you would like to move in the World.
Solution 2
- Bring up the world menu (left click in the background)
- Select
Save Image
Next time you run Cuis all windows should be in exactly the same position with the same text and everything.
Alternately
- Bring up the world menu (left click in the background)
- Select
Save Image As...
and give it a descriptive name
Then the next time you run Cuis use that new image instead of the original and all of your windows should be intact.
TODO. At the moment I am not able to open and pin automatically the OpenOpenMenu at the top left corner of World. Re-Start testing from here:
self runningWorld invokeWorldMenu .
(self runningWorld invokeWorldMenu) class.
Dr. Nicola Mingotti last updted this page on 29-Sep-2021. Tested in Cuis5.0-4871.image.