Swap top corners

Nevin Pratt nevinpratt at earthlink.net
Sat Jan 26 03:01:44 UTC 2002


Thanks, Doug.  Worked fine.  Looks fairly straight forward, but as you 
can see I'm learning my way around Squeak right now.  I've been a 
VisualWorks and VisualAge man.

Nevin


Doug Way wrote:

> Nevin Pratt wrote:
> 
>>I'd like to move the CLOSE WINDOW box to the top-right corner of the
>>window, and the MINIMIZE WINDOW box on the top-left of the window title
>>bar.  That is opposite to how Squeak currently does it.
>>
>>Anybody know how to change it?
>>
> 
> Yes, look at #addCloseBox and #setFramesForLabelArea in the class SystemWindow.  You can see in each method where a layout frame is created (e.g. frame leftFraction: 0; etc.), one for closeBox and one for collapseBox.  Swapping these two frame statements should probably do it.
> 
> As I'm looking at these methods I notice that #setFramesForLabelArea has a very misleading comment implying that it's only used for converting old instances, but it's really used every time a window is opened.  Should probably be corrected.
> 
> - Doug Way
>   dway at riskmetrics.com
> 
> 
> 






More information about the Squeak-dev mailing list