s-news
[Top] [All Lists]

[S] Customising the GUI - locating a text file

To: S Plus News <s-news@wubios.wustl.edu>
Subject: [S] Customising the GUI - locating a text file
From: David Rose <Quinion_Rose@compuserve.com>
Date: Sun, 19 Dec 1999 08:19:05 -0500
Sender: owner-s-news@wubios.wustl.edu
To any S-Plus programmers...

I'm trying to write a customised GUI at the moment, including a dialog box
which will allow me to select a file with a specific extension (not one of
the usual ones - the file is ASCII, but the extension denotes the
application which produced it, and I don't want to change it) from either
my hard disk or the network.  To do this, I need to be able to change both
the drive and the directory that I'm looking in, in addition to specifying
the extension I want.

Presumably this can be done by using the same tools as are used in the
File|Import Data dialog - but I can't find these in the manual.  None of
the DialogControl items listed for guiCreate("Property") seems to serve the
purpose, unless what I want is a list box whose default values are set by
drive/directory changes - but this seems unexpectedly complicated for what
should be a very common requirement - and in any case, I don't know how to
change a working directory in S-Plus.

Which tools should I be using, and what are their various options?

As a separate question, is it possible to inspect the S-Plus script which
generated the File|Import data dialog box?  I'm sure I'd learn a great deal
about programming in S-Plus very quickly if I had access to such things.

Many thanks for any help that anyone can offer.

David Quinion-Rose

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Customising the GUI - locating a text file, David Rose <=