Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!rutgers!mcnc!kk From: kk@mcnc.org (Krzysztof Kozminski) Newsgroups: comp.sys.mac.programmer Subject: Re: how can I draw contents of modeless dialog? Message-ID: <2292@speedy.mcnc.org> Date: 7 Jun 90 20:21:21 GMT References: <24766@unix.cis.pitt.edu> Reply-To: kk@mcnc.org.UUCP (Krzysztof Kozminski) Organization: MCNC; RTP, NC Lines: 26 In article <24766@unix.cis.pitt.edu> er225711@unix.cis.pittsburgh.edu (M Kikuchi) writes: >I'm trying to implement a modeless dialog using complete DLOG and >DITL resources, but the contents of the item list are not drawn You need to use IsDialogEvent/DialogSelect calls. Your event loop should look something like: if (GetNextEvent(everyEvent,& CurrEvent)) { if (IsDialogEvent(&CurrEvent)) { /* You may want to intercept some events here */ if (DialogSelect(&CurrEvent, &theDialog, &itemHit)) { /* Process the event/item that got hit */ } } else { /* Handle non-dialog events */ } DialogSelect will process the update/activate events for you. For more details, see IM vol.1, pages somewhere around 400, if I remember correctly. KK -- Kris Kozminski kk@mcnc.org "The party was a masquerade; the guests were all wearing their faces."