[18603] in s-news-athena

home help back first fref pref prev next nref lref last post

Re: [S] Building customized GUIs for S-PLUS

daemon@ATHENA.MIT.EDU (Longhow Lam)
Mon Jul 12 03:36:31 1999

Message-Id: <378998F2.DCA00EEA@candiensten.nl>
Date: Mon, 12 Jul 1999 09:27:46 +0200
From: Longhow Lam <lam@candiensten.nl>
Mime-Version: 1.0
To: Harald =?iso-8859-1?Q?Fekj=E6r?= <hfe@math.uio.no>
Cc: s-news@wubios.wustl.edu
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


Dear Harald,

In S-PLUS 2000 it is a little bit easier than in 4.x. One way to find
out the GUI code is to use the object explorer (browser in 4.x) and have
a folder filtering on MenuItems, a folder filtering on FunctionInfo and
a folder filtering properties. (The last folder is not reaaly neccesary
in 2000)

Say, you are interested in a the dialog for Linear regression. Go first
to the menu Items folder and look for the menuitem object which
corrsesponds to menu entry in the statistics dialog. 

From the menu Item object you can find out which functioninfo object
corresponds with the linear regression dialog. It is menuLm. Go the the
folder with functioninfo objects, and look for menuLm. In S-PLUS 2000
you can right click on the menuLm functioninfo object and show its
properties. They will be shown in a sub folder. The linear regression
dialog has four tabs, so for properties are shown in the sub folder. You
can recursively ask for the properties again of each tab. 

Using 4.x you must go into the menuLm functioninfo object to find out
the properties. and look them up in a folder filtering on properties.

To find out the guiCreate code of a property simply drag a property
object from the object explorer into a script window. 


Hope this helps.
Longhow Lam







Harald Fekjær wrote:
> 
> Dear readers of S-new
> 
> With S-PLUS for Windows 4.x, we got a new powerful language for building
> customized GUIs. I have designed some GUIs, and found it to be a very
> useful way of presenting specialized analysis for novice users. Now I
> want to make a customized version of one of S-PLUS's default GUI's (e.g.
> one of the GUIs designed by Mathsoft and included S-PLUS). As the GUI is
> quite complicated, this would be some work, but does anyone know a
> technique for extracting the Mathsoft S-PLUS GUI code behind the
> statistics menu? Or are these GUIs built-in functions, so that I have to
> construct my new GUI from scratch?
> 
> Thankful for all possible answers.
> 
> Harald Fekjaer,
>                          Section of Medical Statistics, University of
> Oslo.
> 
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------
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

home help back first fref pref prev next nref lref last post