brian@ut-sally.UUCP (Brian H. Powell) (06/12/85)
I am trying to display a dialog box that gives the user a message during a time-consuming process. (i.e. doesn't require any user response) I can't seem to get the text to show up in the box. I can't figure out what I am supposed to do to get that to happen. I am calling GetNewDialog to retrieve a template from the resource fork. Am I supposed to call DrawDialog next or is GetNewDialog sufficient? (I tried both ways, and neither worked.) In case you're wondering, the DLOG *is* visible, and the Alert/Dialog Editor shows it just the way I want it to. At press time, I have abandoned the dialog approach and am using Windows and DrawString. But I'd still like to know what I was supposed to do. Brian H. Powell brian@ut-sally.{ARPA,UUCP} U.S. Mail: Southwestern Bell P.O. Box 5899 451-0739 Austin, TX 78763 AT&T (512) 451-0739
kim@analog.UUCP (Kim Helliwell ) (06/16/85)
> > I am trying to display a dialog box that gives the user a message > during a time-consuming process. (i.e. doesn't require any user response) > I can't seem to get the text to show up in the box. I can't figure out > what I am supposed to do to get that to happen. > > I am calling GetNewDialog to retrieve a template from the resource fork. > Am I supposed to call DrawDialog next or is GetNewDialog sufficient? (I > tried both ways, and neither worked.) > In case you're wondering, the DLOG *is* visible, and the Alert/Dialog > Editor shows it just the way I want it to. > > At press time, I have abandoned the dialog approach and am using Windows > and DrawString. But I'd still like to know what I was supposed to do. > > > > Brian H. Powell brian@ut-sally.{ARPA,UUCP} > > U.S. Mail: Southwestern Bell > P.O. Box 5899 451-0739 > Austin, TX 78763 > AT&T > (512) 451-0739 I just started picking my way through the minefields of the dialog manager, but the answer to this one is simple--a single call to ModalDialog should suffice, after the GetNewDialog (or NewDialog, as the case may be). Good Luck! Kim Helliwell hplabs!analog!kim
jerryg@dartvax.UUCP (Jerrold N. Godes) (06/21/85)
> > > > I am trying to display a dialog box that gives the user a message > > during a time-consuming process. (i.e. doesn't require any user response) > > I can't seem to get the text to show up in the box. I can't figure out > > what I am supposed to do to get that to happen. > > > I just started picking my way through the minefields of the dialog manager, but > the answer to this one is simple--a single call to ModalDialog should suffice, > after the GetNewDialog (or NewDialog, as the case may be). Good Luck! > However, ModalDialog requires some input from the user. The approach you should take is to make the Dialog invisible. Then you can call ShowWindow in order to get the text to show up. The reason this occurs is because the Dialog manager soley causes an update event for the Dialog's window. This is normally handled by ModalDialog, but can also be handled by ShowWindow. This should be more what you are looking for, rather than forcing the user to do something by calling ModalDialog. - Jerry Godes