[S] Need help understanding how to use GUI tools in S-PLUS 4.5

Steven P. Millard (smillard@tacoma.nwrain.net)
Mon, 18 May 1998 12:18:47 -0700


Hello,

Last week I posted a request for simple examples of the various types
of Dialog Controls you can use to build a GUI in S-PLUS 4.x for
Windows. I pointed out that the example scripts to illustrate building
a GUI that come with S-PLUS cover a few of the Dialog Controls, but not
as many as I'd like.

I only received two replies, which leads me to believe that perhaps:

1. Not very many people have seen this message yet, or,
2. Not very many people are programming with the GUI tools yet, or,
3. Those who are programming with the GUI tools are way over my head
and don't have any simple examples.

Professor Brian Ripley kindly responded with the following information:

* "Try a reverse look-up: where you see a control in the menu system
you like, look it up." That is, you can get a look at the FunctionInfo
associated with a function that is called by a menu item by opening the
object browser, filtering on FunctionInfo and either double-clicking on
the function name (e.g., menuPdist), which brings up a window, or even
better you can drag the function to a script window and all of the
function information will be printed out in the script window.

* "There are some simple examples now in the V&R2 programming
complements."

* "MASS and nnet have GUIs, and the code for those are available as
part of the current distribution VRlibc.exe, specifically as file
MASSdia/dialogs.q."

The reverse lookup method helps a little, but unfortunately a lot of
the functions call built-in properties that are not really documented.
I have also found out that the code for a lot of (most? all?) the
pull-down menus built into S-PLUS 4.x was written in Axum code, not the
S-PLUS GUI-building code, so looking at that code wouldn't help me
anyway. I will definitely look at the GUI that comes with MASS. Looks
like I have a lot of learning ahead of me!

Thanks for your time!

Sincerely,

--Steve M.

_____________
| *** | Steven P. Millard, Ph.D.
| * |
| * * * | P robability, TEL: 206-528-4877
| * * * | S tatistics & FAX: 206-528-4802
| * | I nformation E-mail: SMillard@ProbStatInfo.com
| * | Web: www.ProbStatInfo.com
| *** | 7723 44th Avenue NE
|___________| Seattle, WA 98115-5117 USA

Original Query:
---------------
I am using S-PLUS 4.5 for Windows. I am starting to write a GUI
interface for ENVIRONMENTALSTATS for S-PLUS, and I am having a hard
time learning how to code. The list below (after my signature) lists
all of the possible values for DialogControl (quotes omitted). Does
anyone have simple examples of some or all of these types of controls
so I can understand which control does what? As far as I can tell,
this information is not really laid out in the S-PLUS documentation.
There are some simple examples, but they don't begin to cover the
possibilities.

It would be nice to see some code that produces dialog boxes like the
ones that come with S-PLUS. For example, in S-PLUS I can type mean at
the command line and out scrolls the definition of the mean function.
If I use the GUI and choose Data->Distribuiton Functions... , I can
fill in the dialog box, get a result, and look at the History Log to
see that the function menuPdist was called by the dialog box, but I
can't get my hands on the code that created the dialog box.

Thanks for your time.

Sincerely,

--Steve M.

_____________
| *** | Steven P. Millard, Ph.D.
| * |
| * * * | P robability, TEL: 206-528-4877
| * * * | S tatistics & FAX: 206-528-4802
| * | I nformation E-mail: SMillard@ProbStatInfo.com
| * | Web: www.ProbStatInfo.com
| *** | 7723 44th Avenue NE
|___________| Seattle, WA 98115-5117 USA

Types of Dialog Controls:
------------------------
Invisible
Button
Check Box
Static Text
String
Wide String
List Box
Combo Box
Float
Float Auto
Float Range
Integer
Integer Auto
Integer Range
Color List
New Line
Page Tab
Multi-select Combo Box
Wide Multi-select Combo Box
Multi-select List Box
Wide Multi-select List Box
String List Box
Radio Buttons
Integer Spinner
Float Spinner
Integer Slider
Float Slider
OCX String
Picture List Box
Wide Picture List Box
Picture
Wide Picture
-----------------------------------------------------------------------
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