Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!portal!sv!news From: leonardr@svc.portal.com (Leonard Rosenthol) Newsgroups: comp.sys.mac.programmer Subject: Re: Resizable windows Message-ID: <1990Oct15.190508.8408@svc.portal.com> Date: 15 Oct 90 19:05:08 GMT References: <90287.182643CXT105@psuvm.psu.edu> <1990Oct15.020733.16435@engin.umich.edu> Sender: news@svc.portal.com Reply-To: leonardr@svc.portal.com (Leonard Rosenthol) Organization: Software Ventures Corporation. Lines: 27 In article <1990Oct15.020733.16435@engin.umich.edu>, mystone@mondo.engin.umich.edu (Dean Yu) writes: > In article <90287.182643CXT105@psuvm.psu.edu> CXT105@psuvm.psu.edu (Christopher Tate) writes: > >Problem: I want a resizable window, with the grow box in the lower right > >and all that, but I do not want any scroll bars. I JUST want the box that > >indicates the window is resizable. > > > If you're going to use the standard WDEF, you can set the clip region of > your window to a 16 by 16 square that's in the bottom right of your window > before calling _DrawGrowIcon. The grow icon will be drawn, but the lines > for the scroll bars will be clipped out. > There is, however, one problem with this...What if Apple ever changes the size of the 'GrowIcon', then you either end up with extra stuff, or not enough? This will also effect utilities like Personality and ClickChange which allow the user to change the WDEF in use. The PROPER solution is to write a WDEF, and second, I think would be to at least stub the standard WDEF and handle the wGrowMsg message yourself. Admittedly, writing a WDEF is not entirely trivial, but Apple supplies source to theirs, and you can just mod the appropriate parts. Leonard Rosenthol Software Ventures -- Leonard Rosenthol Software Ventures Corp. MicroPhone II Development Team