Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!uw-june!wolf.cs.washington.edu!slh From: slh@wolf.cs.washington.edu (Scott Heyano) Newsgroups: comp.windows.x.motif Subject: Re: Getting the filename from a FileSelectionDialog? Message-ID: <14681@june.cs.washington.edu> Date: 25 Jan 91 17:19:28 GMT References: <36294@netnews.upenn.edu> Sender: news@cs.washington.edu Reply-To: slh@wolf.cs.washington.edu (Scott Heyano) Distribution: na Organization: Computer Science & Engineering, U. of Washington, Seattle Lines: 14 In article <36294@netnews.upenn.edu> lau@desci.wharton.upenn.edu (Yan K. Lau) writes: |I'm sure this is an easy question for everyone but I haven't been able |to figure it out yet. How do you get the filename that the user picks |or types from a FileSelectionDialog? For instance, after the user clicks |on the "OK" button, I want to retrieve the name that was chosen. | |I have been able to set the XmNdirSpec using the XtSetValues but I haven't |been able to retrieve it (as a XmString?) and change it back into array |of char. | Seems like you should be able to get it through XmNdirSpec, but I've never tried it. The callback struct for the FSB has the pick as an XmString value; the field name is value.