Path: utzoo!attcan!utgpu!watmath!iuvax!purdue!gatech!prism!cc100aa From: cc100aa@prism.gatech.EDU (Ray Spalding) Newsgroups: comp.sys.mac.programmer Subject: Re: Gray (dotted) line??? Message-ID: <1265@hydra.gatech.EDU> Date: 28 Jul 89 19:38:27 GMT References: Reply-To: cc100aa@prism.gatech.EDU (Ray Spalding) Organization: Georgia Institute of Technology Lines: 22 In article cy03+@andrew.cmu.edu (Chao-Ping Yang) writes: >Can somebody tell me how to Frame with a gray line, like in DragrayRgn? >I looked through IM 1-5 and could not find anything, but you see >this kind of framing in almost any drawing programs. > >==Chaoping > >cy03@andrew.cmu.edu Use: PenMode(patXor); PenPat(qd.gray); FrameRect(&rect); When the rectangle you want to frame changes (e.g., the user moves the mouse with the button down), frame the OLD rectangle again: in Xor mode, this clears the old gray box from the screen. Then, frame the new rectangle. -- Ray Spalding Georgia Institute of Technology, Atlanta Georgia, 30332 uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!cc100aa Internet: cc100aa@prism.gatech.edu