🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.explorer
Article #138

Re: Can I set file browser widget?

#138
From: Jim Patterson
Date: Mon, 09 Nov 1992 16:29
31 lines
1548 bytes
John Hagedorn (hagedorn@betsy.gsfc.nasa.gov) wrote:
: 
: Is there a way of setting the selection of a file browser widget from
: my program?  On module initialization, I want to set the directory to
: the current working directory.  I have tried this code:
: 
: store_frames_init ()
:         {
:         char curr_dir[256];
: 
:         if ( getcwd (curr_dir, 256) == NULL)
:                 {
:                 return -1;
:                 }
: 
:         strcat (curr_dir, "/*");

I think the problem is adding the * to the end of the directory.  The
explorer widget doesn't know how to deal with the wildcard.  I have
successfully set the directory by using "./".

Hope this helps,

Jim
--

-- 
James Patterson	             photon!jhp@ucsd.edu      jhp@photon.com
Photon Research Associates   619-455-9741 (voice)     619-546-3903 (fax)
"... three great virtues of a programmer: laziness,impatience and hubris "
     Larry Wall in _Programming Perl_
Technical Details
Message-ID: <1992Nov9.162949.9291@photon.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!agate!dog.ee.lbl.gov!news!nosc!crash!photon.photon.com!jhp
References: <1992Nov4.121344@betsy.gsfc.nasa.gov>

Show Full Headers
Complete Article Headers
Newsgroups: comp.graphics.explorer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!agate!dog.ee.lbl.gov!news!nosc!crash!photon.photon.com!jhp
From: jhp@photon.com (Jim Patterson)
Subject: Re: Can I set file browser widget?
Message-ID: <1992Nov9.162949.9291@photon.com>
Sender: usenet@photon.com (Usenet dummy users)
Reply-To: jhp@photon.com
Organization: Photon Research Associates, Inc.
X-Newsreader: TIN [version 1.1 PL6]
References: <1992Nov4.121344@betsy.gsfc.nasa.gov>
Date: Mon, 9 Nov 1992 16:29:49 GMT
Lines: 31