Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!cs.ed.ac.uk!cs.edinburgh.ac.uk!nick From: nick@cs.edinburgh.ac.uk (Nick Rothwell) Newsgroups: comp.sys.mac.programmer Subject: Re: Resizable windows Message-ID: <611@skye.cs.ed.ac.uk> Date: 15 Oct 90 16:18:10 GMT References: <90287.182643CXT105@psuvm.psu.edu> Sender: nnews@cs.ed.ac.uk Reply-To: nick@lfcs.ed.ac.uk Organization: Wavetables 'R' Us Lines: 25 In article <90287.182643CXT105@psuvm.psu.edu>, CXT105@psuvm.psu.edu (Christopher Tate) writes: > 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? I don't think that would be necessary. As I recall, using the correct variation code (or whatever it's called) for the standard WDEF will get one which the Window Manager will resize whenever you click the grow region, regardless of what you've drawn. > 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 would just fake it, myself. The THINK class library uses a small icon (SICN) for the grow-box, and paints it itself. Be sure to highlight/dehighlight it appropriately. Nick. -- Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh. nick@lfcs.ed.ac.uk !mcsun!ukc!lfcs!nick ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ "Now remember - and this is most important - you must think in Russian."