Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!udel!haven.umd.edu!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!babcock.cerc.wvu.wvnet.edu From: vrm@babcock.cerc.wvu.wvnet.edu (Vasile R. Montan) Newsgroups: comp.sys.mac.programmer Subject: Re: Help - editText in modeless dialog Message-ID: <1784@babcock.cerc.wvu.wvnet.edu> Date: 22 May 91 11:24:31 GMT References: <24931@well.sf.ca.us> Sender: news@cerc.wvu.wvnet.edu Distribution: usa Lines: 31 From article <24931@well.sf.ca.us>, by gurgle@well.sf.ca.us (Pete Gontier): > 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.) Well, what about a case where it's a modal dialog-- the most straightforward modal dialog you can imagine, with one button, one disabled static text item, and one editable text item? From the behavior of the text as I click and type, I can see that the selection point/range is being properly selected, but the feedback to the user has two problems: 1. The blinking caret never appears. It never even makes one blink. 2. When I select a range of text with the mouse, the text becomes inverted (white on black),as normal. However, if I click the mouse down in the text again, the text is not re-inverted back to normal. If I select a smaller range within the original larger range, the smaller range is inverted back to normal (black on white); the formerly selected text to the left and right of the new selection stays inverted, even though it isn't selected. Is there something I'm not doing right? The modal in question has no filter proc, no user items, nothing. --Kurisuto un020070@vaxa.wvnet.edu