Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!mondo.engin.umich.edu!mystone From: mystone@mondo.engin.umich.edu (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: Re: Resizable windows Message-ID: <1990Oct15.020733.16435@engin.umich.edu> Date: 15 Oct 90 02:07:33 GMT References: <90287.182643CXT105@psuvm.psu.edu> Sender: news@engin.umich.edu (CAEN Netnews) Reply-To: mystone@mondo.engin.umich.edu Organization: Patches 'R' Us, A Wholly Owned Subsidiary of Cyberite Systems Lines: 27 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. > >How do people usually do this? The standard DrawGrowIcon() routine draws >lines for the scroll bar borders; I don't want these. Do I *really* have >to hack up my own WDEF to handle resizable windows without scroll bars? > 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. Note however, that when the user goes to resize the window, the outlines of the scroll bars will still be drawn while the user is resizing the window. -- Dean _______________________________________________________________________________ Dean Yu | E-mail: mystone@mondo.engin.umich.edu Patches 'R' Us | Real-mail: Dean Yu A Division of Cyberite Systems | 909 Church St Apt C | Ann Arbor, MI 48104 I'm not the voice of Reason, much | Phone: 313 662-4073 less the voice of Cyberite. | 313 662-4163 -------------------------------------------------------------------------------