s-news
[Top] [All Lists]

passing GUI data to variables

To: S-news@wubios.wustl.edu
Subject: passing GUI data to variables
From: Stafford Phillip-APS095 <phillip.stafford@motorola.com>
Date: Tue, 21 May 2002 16:28:28 -0500
Greetings;

I have had an enormous amount of help from the Insightful tech support team,
esp. Truc-Giang Pham with GUI questions.  The GUI functions are complex but
very powerful, anyone with some spare time could probably write an entire
(and probably successful) book on just the GUI functions in S+.

I'm trying to get some different perspectives on this problem:

Truc kindly created a two-page GUI that is created like this: (using the
TESTGui function)

guiCreate("FunctionInfo",Function="TESTGui",PropertyList = c("TESTProp0",
"TESTPage1", "TESTPage2")) 

and displayed like this:

guiDisplayDialog("Function", Name= "TESTGui")

and I want to pass names selected by the user from two wide MS List Boxes, 1
radio box, and 1 String box into 4 separate variables.  I have a function
that's called from guiCreate above:

TESTGui <- function(...){ 
        MS.List.Box#1.data_rbind(...)
        MS.List.Box#1.data<<-MS.List.Box#1.data
        #MS.List.Box#2.data_rbind(...)
        #MS.List.Box#2.data<<-MS.List.Box#2.data
        #Radio.Box.data_rbind(...)
        #Radio.Box.data<<-Radio.Box.data
        #String.Box.data_rbind(...)
        #String.Box.data<<-String.Box.data
}

The question is:  how do I pass my variable names (not objects but the
actual names from the dialog boxes) to 4 different vectors.  There will be
an unknown number of objects selected from the boxes (can I use nargs(...)
or do I need to use rbind(...)?) and I need to put them into 4 vectors. 

1) Do I need to use 4 separate functions, 1 for each list box or can I use
one function for all 4 dialogs?  I'm guessing 4 separate functions.
2) The function seems to be trying to eval(...) my selections instead of
passing the names from the dialog boxes.  How do I grab only the names?

Thanks for any help, I've had a lot of help from a lot of people and I'd
like to thank everyone with suggestions.


Sincerely,

Phillip Stafford
Motorola Life Sciences

<Prev in Thread] Current Thread [Next in Thread>
  • passing GUI data to variables, Stafford Phillip-APS095 <=