Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!bellcore!wind!sdh From: sdh@wind.bellcore.com (Stephen D Hawley) Newsgroups: comp.sys.mac.programmer Subject: Re: Dialog Problems Message-ID: <17225@bellcore.bellcore.com> Date: 18 Jul 89 18:07:05 GMT References: <331@wehi.dn.mu.oz> Sender: news@bellcore.bellcore.com Reply-To: sdh@wind.UUCP (Stephen D Hawley) Organization: Bellcore, Morristown, NJ Lines: 29 >main() >{ > InitStuff(); > OpenResFile("\pRFile.rsrc"); > myDialog=GetNewDialog(myDLOGref,0,-1); >} > >The dialog gets drawn on the screen, but only the first two items are drawn >in it????? ( the OK/Cancel buttons ). > >What's wrong?, Have I fallen into 'Trap for Beginners #1 of 999' if the dialog box is modal, you have to call DrawDialog(), I believe to get it to show up. If it is a modelss dialog box, it will be drawn when you have you event loop all patched together. When a dialog box is called up with GetNewDialog(), only some of the items are drawn, the rest are taken care of by an update event that is generated. If you have the IsDialogEvent() text and DialogSelect(), the rest will be drawn auto-magically. clear? Steve Hawley sdh@flash.bellcore.com "1) Never get involved in a land war in Asia and 2) Never go in with a Sicilian when death is on the line."