Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!news.cs.indiana.edu!widener!netnews.upenn.edu!king.mcs.drexel.edu!txhou From: txhou@mcs.drexel.edu (Xinjun Hou) Newsgroups: comp.sys.mac.programmer Subject: Re: Help - editText in modeless dialog Message-ID: <1991May22.174459.11986@mcs.drexel.edu> Date: 22 May 91 17:44:59 GMT Article-I.D.: mcs.1991May22.174459.11986 References: <1991May20.162018.6075@mcs.drexel.edu> <24931@well.sf.ca.us> Distribution: usa Organization: Drexel University Lines: 28 In article <24931@well.sf.ca.us> gurgle@well.sf.ca.us (Pete Gontier) writes: >txhou@mcs.drexel.edu (Xinjun Hou) writes: > >>I am using a modeless dialog to prompt user enter some numbers, but I >>could not get the caret blinking when a editable item is seleted. Has >>anyone have this problem before? > >The dialog manager needs to see a null event every once in a while. >When you pass a null event to the dialog manager, it's like saying >"I don't have anything to do right now -- do you have any editText items >which need their carets blinking?" > >(BTW, a null event is when one of the event calls returns FALSE.) >-- > Pete Gontier, gurgle@well.sf.ca.us > Software Imagineer, Kiwi Software, Inc. I did called IsDialogEvent regardless the return value of WaitNextEvent or SystemTask/GetNextEvent. One more strange thing, when I tryed to check the event return from WaitNextEvent, I never found a nullEvent(I have a break in the program when a nullEvent is found) What happened? System : MacClassic, THINK pascal 3.0.1 --- Xinjun Hou, txhou@king.mcs.drexel.edu