[Cuis-dev] location of windows opened from World menu

Mark Volkmann r.mark.volkmann at gmail.com
Tue Feb 4 13:14:13 PST 2025


One thing I wasn't handling properly was opening windows triggered from
code (such as a "Do It" performed in another window) rather than from the
World menu.
I updated my code to do that. For example, if you enter something like this
in a Workspace:

#(1 2 3) inspect

and "Do It", the SystemWindow instance method openInWorld: now detects that
the window is not being opened from a menu, gets the location of the
HandMorph, and opens the window so its upper-left corner is at the
HandMorph location.

The attached screenshot shows this where the hand was right after the
expression before I pressed cmd-d to "Do It'".

On Mon, Feb 3, 2025 at 11:33 AM Mariano Montone via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

>
> El 2/2/25 a las 21:56, Mark Volkmann via Cuis-dev escribió:
> > 1) Does anyone else think this would be a better way to position new
> > windows? Maybe there could be a new preference that enables this
> behavior.
>
> +1 to have this behavior, and controlled by a preference
>
>       Mariano
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250204/3eb1f89b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2025-02-04 at 3.12.21?PM.png
Type: image/png
Size: 59856 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250204/3eb1f89b/attachment-0001.png>


More information about the Cuis-dev mailing list