Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!ames!claris!apple!dwb From: dwb@Apple.COM (David W. Berry) Newsgroups: comp.sys.mac.programmer Subject: Re: When to draw rect around List in DLOG Message-ID: <7816@apple.Apple.Com> Date: 30 Mar 88 02:11:07 GMT References: <1101@cadre.dsl.PITTSBURGH.EDU> Reply-To: dwb@apple.UUCP (David W. Berry) Organization: Apple Computer Inc, Cupertino, CA Lines: 33 Keywords: DLOG LIST MANAGER REFRESH In article <1101@cadre.dsl.PITTSBURGH.EDU> jas@cadre.dsl.PITTSBURGH.EDU (Jeffrey A. Sullivan) writes: >I am maintaining a List (ala list manager) in a dialog using TransSkel. The >list does not have arectangle around it, so you have to draw one in. The >question is : When exactly should I be drawing it in? During updateEvent, >ActivateEvent, before calling the SkelDialog procedure, or what? The way I prefer to do it is to define a UserProc which handles drawing the dialog. That way I'm sure that anytime it needs to be drawn it will be. The proc need do little more than: pascal void UserProc(dlog, item) DialogPtr dlog; short item; { Rect rect; GetDItem(dlog, item, &type, &hand, &rect); LUpdate(whatever it's args are); FrameRect(&rect); } > >jas >-- >.......................................................................... >Jeffrey Sullivan | University of Pittsburgh >jas@cadre.dsl.pittsburgh.edu | Intelligent Systems Studies Program >jasper@PittVMS.BITNET, jasst3@cisunx.UUCP | Graduate Student -- David W. Berry dwb@Delphi dwb@apple.com 973-5168@408.MaBell Disclaimer: Apple doesn't even know I have an opinion and certainly wouldn't want if they did.