sean@mitchell.eos.scg.hac.com (Sean Cohan) (11/16/90)
Why doesn't the FileSelectionBox's filter procedure work? I set the XmNdirMask and the XmNdirSpec to something like XmStringCreateLtoR("*.c", XmSTING_DEFAULT_CHARSET), but it lists all of the files in the directory. If I go to the directory mask input field and change the mask, all of the files are still listed. What's wrong? Thanks in advance.
nazgul@alphalpha.com (Kee Hinckley) (11/16/90)
> Why doesn't the FileSelectionBox's filter procedure work? I set the XmNdirMask > and the XmNdirSpec to something like XmStringCreateLtoR("*.c", > XmSTING_DEFAULT_CHARSET), but it lists all of the files in the directory. If > I go to the directory mask input field and change the mask, all of the files > are still listed. What's wrong? What version of Motif on what system?
nazgul@alphalpha.com (Kee Hinckley) (11/18/90)
----- Forwarded message follows ----- Received: by alphalpha.com ( 5.52 (84)/test) id AA11752; Sat, 17 Nov 90 16:27:20 EST Received: from RUTGERS.EDU by BU.EDU (1.99) Sat, 17 Nov 90 15:54:41 EST Received: from elroy.jpl.nasa.gov by rutgers.edu (5.59/SMI4.0/RU1.4/3.08) id AA28524; Sat, 17 Nov 90 15:53:04 EST Date: Sat, 17 Nov 90 14:53:04 -0400 From: Postmaster@rutgers.edu (Mail Delivery Subsystem) Subject: Returned mail: Data format error Message-ID: <9011172053.AA28524@rutgers.edu> To: <nazgul@alphalpha.com> ----- Transcript of session follows ----- can't get working directory; will try to continue bad system name: mitchell uux failed. code 65 501 <mitchell!sean@rutgers.rutgers.edu>... Data format error ----- Unsent message follows ----- Received: from elroy.jpl.nasa.gov by rutgers.edu (5.59/SMI4.0/RU1.4/3.08) id AA28508; Sat, 17 Nov 90 15:53:04 EST Received: from ames.UUCP by elroy.Jpl.Nasa.Gov (4.1/SMI-4.1+DXR) id AA28691; Fri, 16 Nov 90 21:31:18 PST Received: from harvard.harvard.edu by ames.arc.nasa.gov (5.64/1.2); Fri, 16 Nov 90 19:27:53 -0800 Received: by harvard.harvard.edu (5.54/a0.25) (for elroy!mitchell!sean) id AA10235; Sat, 17 Nov 90 00:24:21 EST Received: from BU.EDU by das.harvard.edu; Sat, 17 Nov 90 00:24:13 EST Received: by BU.EDU (1.99) Sat, 17 Nov 90 00:25:04 EST Received: by alphalpha.com ( 5.52 (84)/test) id AA09064; Fri, 16 Nov 90 23:34:59 EST From: nazgul@alphalpha.com (Kee Hinckley) To: das!ames!elroy!mitchell!sean@elroy.jpl.nasa.gov (Sean Cohan) Subject: Re: FileSelectionBox In-Reply-To: <9011161813.AA17274@> References: <9011161813.AA17274@> Date: Fri, 16 Nov 90 23:34:56 -0400 Message-Id: <901116233456.9011@alphalpha> X-Mailer: Poste > > > > > Why doesn't the FileSelectionBox's filter procedure work? I set the XmNdirMask > > > and the XmNdirSpec to something like XmStringCreateLtoR("*.c", > > > XmSTING_DEFAULT_CHARSET), but it lists all of the files in the directory. If > > > I go to the directory mask input field and change the mask, all of the files > > > are still listed. What's wrong? > > What version of Motif on what system? > > > > Sorry `bout that. I keep forgetting to specify that stuff. I`m using X11R4 > with Motif 1.0 on a Sun SPARCstation 370. I`m trying to get the ball rolling > for Motif 1.1. Do you know where we could get it? Well, someone just sent me mail that I think they meant for you that said that file filters didn't work right on the Sun from 1.0 to 1.02. As for getting Motif, I'd go to wherever you got 1.0. I'm not sure that anyone is shipping binaries yet, but if you pay the $1000 to OSF and get source the port shouldn't be too hard. Of course if the problem is just the Motif version then you should go back to the vendor and see if 1.03 fixes it. ----- End of forwarded message -----
masa@hpsciz.HP.COM (Masayoshi Habu) (11/20/90)
It works for me. I create a FileSelectionBox and reuse it whenever possible. Each time I give XmNdirMask resource as you stated in the base note. Then I invoke XmFileSelectionDoSearch(shell, NULL). Setting a value of XmNdirMask does not initiate this file search with Motif 1.0 widgets. It is searched at creation time only. Hope this works for you.