Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!apple!claris!jazzman From: jazzman@claris.com (Sydney R. Polk) Newsgroups: comp.sys.apple Subject: Re: A few IIGS programming questions Message-ID: <10422@claris.com> Date: 27 Jul 89 19:48:02 GMT References: <10294@boulder.Colorado.EDU> Organization: Claris Corporation, Santa Clara CA Lines: 40 From article <10294@boulder.Colorado.EDU>, by hartkopf@tramp.Colorado.EDU (HARTKOPF JEFFREY M): > > I have a few sort of unrelated IIGS programming questions that I hope > someone will be able to answer for me. If you include any examples, please > use Pascal or C. Thanks. > > 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. SetFileInfo will unlock the file. The attribute bits control this. The D bit is enabled to allow destroying, disabled to dissallow it. > 2) What is the format for the createDate, createTime, modDate, and modTime > fields of some of the ProDOS 16 records? I don't have my GS/OS manual here right now, but I am sure someone else will help out. > 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? You must be trying to use TaskMaster. When I wrote an NDA (about two years ago), you had to do a _FindControl and call _TrackControl with the handle _FindControl returns. > 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. You could do a _GetMouse and read screen memory directly based on the return point. > 5) Does anyone know how much it costs to upgrade (?) from the TML Pascal > stand-alone version to the APW version? Also, is there a way to contact TML > Systems through the network? Sorry, striclty assembly language here. -- Syd Polk | Wherever you go, there you are. jazzman@claris.com | Let the music be your light. GO 'STROS! | These opinions are mine. Any resemblence to other GO RICE! | opinions, real or fictitious, is purely coincidence.