[ENH] VisualWorks style window rect from user.

sps2000 at mail.com sps2000 at mail.com
Thu Aug 30 16:34:18 UTC 2001


[NOTE: sorry if this get's up to the list twice]

from preamble:

"Change Set:		spsWindowRectFromUser
Date:			30 August 2001
Author:			Steven Swerling

This changeset is a little tidbit for those VisualWorks users who
enjoyed the way VW would place many new windows on the screen: first it
gets a rectangle from the user, by ""rubberbanding"" a rectangle -- the
resulting window opens within the bounds of that rectangle. 

There are myriad calls to SystemWindow>>openInWorld. The changeset does
not make a big generalization about having all windows getRectFromUser.
After all, you might not want a Debug notifier window or SyntaxError
window to be impeded on its way to the screen. Instead, I have rehooked
a few windows to call SystemWindow>>openInWorldRectFromUser:. If you
have a window that is not getting rectFromUser, and want it to do so,
just find the call to SystemWindow>>openInWorld: and redirect it to
#openInWorldRectFromUser: (or #openInWorldRectFromUser:extent:).

A preference is added in the Windows category, 'windowRectFromUser', so
if you are on the bubble about whether you like the feature, you can
save it in the image and turn in on or off through the preferences panel
for Windows (WorldMenu->help->preferences, in the Windows 'tab').

"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spsWindowRectFromUser.cs.gz
Type: application/octet-stream
Size: 2721 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010830/39498a60/spsWindowRectFromUser.cs.obj


More information about the Squeak-dev mailing list