mahboud@kinetics.UUCP (Mahboud Zabetian) (07/25/89)
Thanks to all who responded. My question was: Why can I not do a SetIText right after getting a closeDev message? (Yes I do mean SetIText) Well, the answer seems to be that the Control Panel no longer has our DITL appended to his DITL. Even though the DITL is still in the heap, GetDItem does not return a valid handle for the Item. So I decided not to do a SetIText at closeDev time. Second question was: Why is it that doing a FillOval after an updateDev never gets drawn, except if the area being drawn into used to be covered? One person, John Lim, mentioned BeginUpdate and EndUpdate. Indeed, that seemed to have solved the problem. It seems that when you get an updateDev call, the Control Panel has already done a BeginUpdate. That prevents you from drawing into areas that do not need updating. Therefore after every updateDev, I do an EndUpdate, fill my oval, and then call BeginUpdate again. Thanks again for your responses. mahboud ps to Apple: Any reason why you can't hold on to the DITL list untill after you get control back from the closeDev call? Standard Disclaimer: Don't mind me, I'm just babbling. ------------------------------------------------------------------------------ Mahboud Zabetian (415) 975-4511 mahboud@kinetics.com Kinetics/Excelan/Novell 1340 Treat Blvd, Suite 500 ...!ucbvax!mtxinu!kinetics!mahboud Walnut Creek, CA 94596 ------------------------------------------------------------------------------ Woke up in my clothes again this morning, I don't know exactly where I am.... --- Sting ------------------------------------------------------------------------------