[S] gui properties: combo boxes with current working director...

Karen_Johnson@bdhq.bd.com
Mon, 3 Aug 1998 16:54:49 -0400


Subject:
gui properties: combo boxes with current working directory
defaults
---------------------------------
I'm *trying* to write a gui for an established function I've
written that generates some custom plots. A well thought out gui
would increase the number of users at least 4-fold with a
subsequent improvements in productivity and response time,
however I'm going in circles. Unfortunately, what is documented
is dwarfed but what is not documented.

I would like to do the following:
Create a list/combo box that gives the data.frames from the
working directory as potential choices.
This is the only one I know the answer to (thanks to Nick
Locantore), use CopyFrom = "SPropDataFrameList". Using the
process of elimination (also known as the sledge hammer
approach) the key to this is the argument CopyFrom =
"TXPROP_DataFrames". However, I have no idea *why* this works
as TXPROP_DataFrames does not show up in the list of
properties in the object browser, so I can't find out what is
in it. (It also has the parent property TXPROP_Text, I don't
know what that signifies, but that's not in the property list
either.) Examples:
guiCreate("Property",
Name="ks.prop1", Type="Normal", DialogPrompt="Control Data",
CopyFrom="SPropDataFrameList", IsRequired=1)
# OR
guiCreate("Property",
Name="ks.prop2", Type="Normal", DialogPrompt="Control Data
2",
CopyFrom="TXPROP_DataFrames", IsRequired=1)
# both work, create a combo box with data.frames from the
working directory as default choices
Create a multi-select list/combo box that gives the
data.frames from the working directory as potential choices.
Create a list/combo box that gives column names from a
specified data.frame as potential choices. (A combo box would
be useful here because an advanced user could specify rows,
that's a small percentage of users but I don't want to rule it
out.)

Any and all insights will be appreciated, including complete
redirects. I would be glad to post a summary to the list. I'm
running S+ v4.5 with windows NT workstation.

Thanks for your time,
KJJ
-----------------------------------------------------------------------
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