[comp.windows.x.motif] Need help with Motif 1.1's FileSelectionBox

montnaro@spyder.crd.ge.com (Skip Montanaro) (03/23/91)

I have a couple of problems with the FileSelectionBox that I can't seem to
get around. Perhaps someone in-the-know can help me out.

    1. Can I get the Directories and Files listings to display the items
       relative to the directory resource, instead of always displaying the
       full path? I added a "Current Directory" XmText widget to the
       FileSelectionBox to allow users to jump around the directory tree
       without having to climb directory-by-directory (and incur the pain of
       a long scan in big directories), so I don't need the full path
       displayed. Besides, the display often tends to jump to the beginning
       of the path, not the end, where the useful information is, forcing
       the user to horizontally scroll the two lists.

    2. Is there any way to get a CallBack invoked when a file or directory
       is selected (as opposed to when the OK or Filter buttons are pressed,
       or the file/directory is double-clicked)? I'd like to set some other
       values in the user interface based upon the file the user is
       "considering". 

I suppose I can get the desired behavior by using more primitive list or
selection widgets, but then I'd have to duplicate all the file-related stuff
the FileSelectionBox gives me.

Thanks,

--
Skip (montanaro@crdgw1.ge.com)