Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven.umd.edu!uvaarpa!murdoch!sasha.acc.Virginia.EDU!scl From: scl@sasha.acc.Virginia.EDU (Steve Losen) Newsgroups: comp.windows.x.motif Subject: XmCreateFileSelectionDialog question Message-ID: <1991Apr22.220656.22475@murdoch.acc.Virginia.EDU> Date: 22 Apr 91 22:06:56 GMT Sender: usenet@murdoch.acc.Virginia.EDU Organization: University of Virginia Lines: 26 Originator: scl@sasha.acc.Virginia.EDU I have recently snarfed a program that uses the XmCreateFileSelectionDialog function. I'm no X or motif programmer, so please bear with me. I have determined that this call opens up a window that allows the user to type a pattern into a "filter" box, push the "Filter" button and a scrolled window fills with filenames matching the pattern. The user can then select a filename in the scrolled window and click the "OK" button to select the file. Then this widget disappears. This is very useful, but there's one problem -- whenever the widget pops up it is always initialized with a default pattern, usually forcing the user to retype his pattern. It would be much more convenient (in this application, at least) for the pattern to be saved between calls. In the code the default pattern string is being passed to XmCreateFileSelectionDialog. My question is this: Is there any way to get the user-modified pattern string back from this widget so that it can be passed to the next call to XmCreateFileSelectionDialog? Or is there some other way to get the behavior I want? This is on a IBM RS/6000 running AIX 3.1.3. Motif comes with the system, but I believe it is version 1.0 (based on X11.3). Please respond by email since I don't ordinarily read this group. -- Steve Losen scl@virginia.edu University of Virginia Academic Computing Center