aoki@husc8.HARVARD.EDU (Edwin Aoki) (02/18/90)
Hello People!!!! Just a quick question about windows (I'm reasonably familiar with IM I-V for reference).... When I'm working on my application, which is a multi-window program, the OS gives me update events for my front window (and for all other programs running under MultiFinder) but it doesn't send updates for ANY WINDOW behind the front. When I bring it to the front, the window updates correctly. When I force an update event using the Think Debugger and launching into the update code (by modifying the EventRec), I get updates correctly for the windows correctly. What am I doing wrong? Some specs: Mac II/2MB MultiFinder/Finder no difference System 6.0.3/Finder 6.1 Think C 4.0 Compiling the program doesn't help Inits/etc. NO DIFFERENCE!!! And I'm really confused. The only thing that might be different is that I'm I handle NewWindow (or GetNewWindow, actually) memory management myself. Please MAIL responses, if possible. I always end up throwing up 30-40 messages because I don't log on enough. If you have mail restrictions, etc. then that's fine. I'll try to read the news. But please use mail if at all possible (aoki@husc8.harvard.edu/aoki@husc8.bitnet) Thanks in advance (also Window Experts please see my next posting) -Edwin Aoki (aoki@husc8.harvard.edu aoki@husc8.bitnet)
aoki@husc8.HARVARD.EDU (Edwin Aoki) (02/18/90)
Thanks for all who took time to respond to my request about window updating. I went through all the code with a fine toothed comb, (removing and adding each line individually), and was able to track down the problem to an InvalRect command that was continuously forcing updates of the frontmost screen. Thus, rear screens didn't even get the events to update. Strange. But though I've figured it out, I'm still working on fixing it. Oh well, such is programming for the Mac... For the windows gurus out there, please see my post on Windowoids (those floating windows) and their creation (just to give you all something to do?) Thanks a lot. The net continues to be a source of interesting information. See you all soon, -Edwin (aoki@husc8.harvard.edu/aoki@husc8.bitnet)