Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!apple!well!ewhac From: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Newsgroups: comp.sys.amiga Subject: Re: Forbid() vs LockIBase() question Message-ID: <11486@well.UUCP> Date: 2 May 89 09:04:32 GMT References: <14333@louie.udel.EDU> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: Verbatim Corp.: Abort, Retry, Ignore? Lines: 37 Quote: "Shoot the Lawyers! More skin on HBO!" -- L. H. Puttgrass In article <14333@louie.udel.EDU> TEETER%HUMBER.BITNET@cornellc.cit.cornell.edu (Doug Teeter) writes: > Under what conditions are they required and which one should be used when? > > ie. when adding IText or Border structures to an active gadget? RemoveGadget (foo, bar, grill, etc, etc, etc, ....); MuckWithGadgetGraphics (); AddGadget (even, more, inconsistent, parameters, ....); RefreshGadget (still, more, shades, of, stdio, parameter, ordering); [ I've been kvetching lately about how none of the Intuition gadget manipulation function parameters are consistent, which makes it hard for me to remember what they are. ] > when changing the ImageData pointer of an image? You can pretty much do this any time you want with impunity. There is a small chance of a collision, but if you lay things out right, you should be able to avoid them. If you are the only one who will be rendering the Image, you *can* modify the ImageData pointer at any time. > when fiddling with Window Flag bits? > Forbid (); FiddleWindowFlags (); /* Please be quick here. */ Permit (); > Oh ya! Is it okay to use the ExtData(sp?)(just before the UserData) of the >Window structure form my own purposes? > Probably not. However, JimM is God on this one. JimM? _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU \_ -_ Recumbent Bikes: UUCP: pacbell > !{well,unicom}!ewhac O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack") "Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor