Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!hsdndev!think.com!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!doug.cae.wisc.edu!jverdega From: jverdega@engr.wisc.edu (Jeffrey Verdegan) Newsgroups: comp.sys.mac.programmer Subject: Re: Weird alert behavior Keywords: What the?!? Message-ID: <1991Jun19.104836.23120@doug.cae.wisc.edu> Date: 19 Jun 91 15:48:36 GMT References: <1991Jun19.094234.22837@doug.cae.wisc.edu> Distribution: usa Organization: Computer-Aided Engineering, Univ. of Wisconsin-Madison Lines: 27 An update on the problem. It only happens the first time through the function. someFunction() { ParamText("\pStuff", "\p", "\p", "\p"); Alert(BLANK_ALERT, NULL); /* Do some other stuff */ ParamText("\pStuff", "\p", "\p", "\p"); Alert(BLANK_ALERT, NULL); /* Do som more other stuff. */ /* GetNewDialog, etc. */ ModalDialog(); DisposDialog(); } The first time I call the function, all the alerts and the dialog draw window frames and button outlines, but don't fill in other stuff. On the second and subsequent calls to someFunction, all the alerts and the dialog work fine. This seems to be independent of what other program options the user chooses before selecting the one that calls someFunction. I'm stumped. :-| Jeff Verdegan University of Wisconsin-Madison Computer-Aided Engineering Center jverdega@cae.wisc.edu