Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!apple!usc!oxy!adams.e From: adams.e@oxy.edu (Erik Adams) Newsgroups: comp.sys.mac.programmer Subject: A couple of problems a beginner is having. . . Message-ID: <42687@tiger.oxy.edu> Date: 28 Jun 89 05:38:30 GMT Organization: Occidental College, Los Angeles, CA 90041 Lines: 42 Howdy! I'm not new to programming, but I am new to programming the Macintosh. I am having a couple of problems that look like they have very simple solutions, but I just can't see them. 1.) If I move an application window on top of a system window (the control panel, for example), and then move it away, the system window is _not_ updated. Where the application window was is now a white outline in the system window. This seems to occur with all desk accessories. Currently I am not handling updateEvents for any windows, but when I tried putting in BeginUpdate and EndUpdate, the problem was still there. Any ideas? 2.) I can not get a scroll bar in a modal dialog to work. Here is what I am currently doing: I pass to ModalDialog a pointer to a FilterProcedure. The Filterprocedure checks to see where theEvent is. If theEvent is in the scroll bar, I call TrackControl, passing it an ActionProcedure. I get, at various times with various combinations: nothing at all; a scroll bar that highlights correctly but does not change its value; a scroll bar that both hightlights and moves, but only when you mouseDown about 16 pixels to the left; and more system crashes of varying sorts than I care to enumerate. The problem seem to be with my figuring out whether or not theEvent is in the scroll bar, but there appears to be more than just that. I am using LSC 2.01 on a Mac 512ke, using older (pre-6.0) versions of the Finder and System. (Yes I know there are newer versions of LSC, but I can not compile when I use them: everytime I try I get "Out of Memory" messages from LSC). If enough folk want, I will post my source code. I didn't this time because, as I indicated, these look to me like stupid mistakes which someone has probably run into before and will know how to fix. Thank you in advance. Erik Adams adams.e@oxy.edu