Article View: comp.graphics.explorer
Article #26Can I set file browser widget?
From: John Hagedorn
Date: Wed, 04 Nov 1992 17:13
Date: Wed, 04 Nov 1992 17:13
36 lines
1571 bytes
1571 bytes
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, "/*");
cxInWdgtStrSet ("Frame File", curr_dir);
return 0;
} /* end of store_frames_init */
(Where "Frame File" is the name of the input port assiated with the
file browser.)
I find that this code properly sets the "Selection" string and
the "Contents" window shows the contents of the current directory,
but the directory menu is not updated to show the current
directory.
Is this a bug in cxInWdgtStrSet, or should I not be trying to use
it for this purpose? Is there another way to achieve this?
Thanks.
John Hagedorn hagedorn@betsy.gsfc.nasa.gov (301) 286-7374
Technical Details
Message-ID:
<1992Nov4.121344@betsy.gsfc.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!elroy.jpl.nasa.gov!ames!nsisrv!betsy.gsfc.nasa.gov!hagedornShow Full Headers
Complete Article Headers
Newsgroups: comp.graphics.explorer Path: arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!elroy.jpl.nasa.gov!ames!nsisrv!betsy.gsfc.nasa.gov!hagedorn From: hagedorn@betsy.gsfc.nasa.gov (John Hagedorn) Subject: Can I set file browser widget? Message-ID: <1992Nov4.121344@betsy.gsfc.nasa.gov> Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet) Nntp-Posting-Host: betsy.gsfc.nasa.gov Reply-To: hagedorn@betsy.gsfc.nasa.gov (John Hagedorn) Organization: Goddard Space Flight Center Date: Wed, 4 Nov 1992 17:13:44 GMT Lines: 40