Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: A few IIGS programming questions Message-ID: <33518@apple.Apple.COM> Date: 27 Jul 89 18:21:31 GMT References: <10294@boulder.Colorado.EDU> Organization: Apple Computer Inc, Cupertino, CA Lines: 35 In article <10294@boulder.Colorado.EDU> hartkopf@tramp.Colorado.EDU (HARTKOPF JEFFREY M) writes: >1) How can you lock/unlock files from a IIGS desktop application? Destroy() >returns an error if I attempt to use it on a locked file. What Cary said. The calls you need to get and set the "access" word are GetFileInfo and SetFileInfo. >3) How can I activate the scroll bars in an NDA window? I'm writing an NDA >that uses scroll bars in its window, and I set up the window the same way I >do it for regular desktop applications, but the scroll bars don't respond >to mouse actions in the NDA window's scroll bars. Is there something >different to do for NDA windows? Before System Software 5.0, the system didn't make life very easy for NDAs that want to have scroll bars. You had to create the controls yourself, inside the content of your window--this is a lot of work, since then you have to track the controls yourself & be sure never to draw stuff over them when you update the window. Under 5.0 NDAs can use TaskMasterDA as easily as applications can use TaskMaster; scrolling is no problem. >4) Is there a way to tell the color of the pixel that the mouse cursor is >currently on? I can't seem to find an appropriate toolbox call. GetPixel in QuickDraw II should do it. --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 AppleLink--Personal Edition: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.