Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!decwrl!adobe!hawley From: hawley@adobe.COM (Steve Hawley) Newsgroups: comp.sys.mac.programmer Subject: Re: Resizable windows Message-ID: <7400@adobe.UUCP> Date: 15 Oct 90 16:43:14 GMT References: <90287.182643CXT105@psuvm.psu.edu> Reply-To: hawley@adobe.UUCP (Steve Hawley) Organization: Adobe Systems Incorporated, Mountain View Lines: 33 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. > >I suppose I could just draw the grow icon myself, and fake it, but this >sounds pretty ugly. Is there a "better" way, or better yet, an "approved" >way? I can't say what the approved way is, but I'll tell you what I did: I wrote a routine that was a little for flexible: MyDrawGrowIcon(theWindow, hscroll, vscroll) WindowPtr theWindow; Boolean hscroll, vscroll; Which drew the standard grow icon (which I snarfed from a screen snapshot and converted to a static bitmap local to MyDrawGrowIcon), and provided the marked off areas for scroll bars only on demand. I consider this to be a good solution: it requires no new WDEFs or CDEFs, no patching of traps, and is easy to code (don't forget to pay attention to color!). For complete slickness you may want to rewrite the routine that tracks the window outline for reshaping in a similar way. To Rich Siegel -- what does Think C do for the project window? Steve Hawley hawley@adobe.com -- "I'm sick and tired of being told that ordinary decent people are fed up with being sick and tired. I know I'm certainly not, and I'm sick and tired of begin told that I am." -Monty Python