Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!psivax!quad1!carl From: carl@quad1.quad.com (Carl Priddy) Newsgroups: comp.windows.x.motif Subject: callbacks for text widget Keywords: text,callback,reason Message-ID: <14983@gouda.quad.com> Date: 15 Sep 90 21:51:14 GMT Organization: Quadratron Systems Inc, Thousand Oaks Ca Lines: 13 I have experienced some odd behavior with the text widget. I have a popup dialog that contains a text widget. The purpose of this is to allow the user to input a file name.If the user depresses the middle (2) button in the text widget when it is empty, then I popup a FileSelection widget. The user then selects the file and I copy it to the text widget. Unfortunately, the file selection box pops up twice. This is apparently once for the button down, and once for the button up. The documentation CLAIMS that the event that caused the callback is put into the callback struct, but it is consistentlyzero. I would like to distinguish between button up and down, at this point in the processing. Is the callback struct event pointer being zero just another example of incorrect documentation, or is there some other setup necessary? Any ideas out there? Thanks in advance, carl.