lau@desci.wharton.upenn.edu (Yan K. Lau) (01/25/91)
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. Yan. -- )~ Yan K. Lau lau@kings.wharton.upenn.edu The Wharton School ~/~ -Sheenaphile- 128.91.11.233 University of Pennsylvania /\ God/Goddess/All that is -- the source of love, light and inspiration!
slh@wolf.cs.washington.edu (Scott Heyano) (01/26/91)
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.