Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!husc6!unix!mxmora From: mxmora@unix.SRI.COM (Matt Mora) Newsgroups: comp.sys.mac.programmer Subject: Re: how can I draw contents of modeless dialog? Message-ID: <12892@unix.SRI.COM> Date: 7 Jun 90 23:44:35 GMT References: <24766@unix.cis.pitt.edu> Reply-To: mxmora@unix.UUCP (Matt Mora) Organization: SRI International, Menlo Park, CA Lines: 29 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 >(i.e. I get just a plain white window). When I replace my >getNextEvent() loop with a ModalDialog() loop, everything is >displayed just fine! How do I draw the contents of a modeless >dialog as contained in its item list? If I do DrawControls(), only the Try DrawDialog(dlg) or DialogSelect(evt, dlg, itemHit); It depends on where (in your code) that you want your modaless dialog to be drawn (redrawn). If in your eventloop you usally call Dialog select after you call isdialog. Draw dialog is for informational dialogs I think. I never used it yet. I think you use drawdialog for stuff like "waiting for the laser writer..." type dialogs. I think dialogselect is supposed to take care of the updating also. -- ___________________________________________________________ Matthew Mora | my Mac Matt_Mora@sri.com SRI International | my unix mxmora@unix.sri.com ___________________________________________________________