Recreate a dialog

DESCRIPTION:

Recreates a dialog window in the dialog handling system program based on a previously created dialog and returns a S-PLUS object that can be used to refer to that dialog.

Note: This function is deprecated. For more information, see .

USAGE:

dialog.recreate(dialog, xdialog="", title="S-PLUS Dialog") 

REQUIRED ARGUMENTS:

dialog
an object of class "dialog" as returned by a previous execution of either dialog.create or dialog.recreate. The widget and button specifications are extracted from this object and used to create a new instance of the dialog in the current dialog handler program.

OPTIONAL ARGUMENTS:

xdialog
a character string giving the X11 widget name to use for the top-level window for the dialog. An empty string causes the dialog handling system to generate its own name. This argument is useful if X resources need to be overridden for specific dialogs. See the examples for a use of this argument.
title
character string specifying the title of the dialog window. Most window managers show this string in the title bar of the dialog window.

VALUE:

Returns an object used by the other dialog handling routines to refer to the created dialog. It should be a list with a class of "dialog".

SIDE EFFECTS:

Causes the dialog handling system program to create some windows with the X11 system, but does not display them.

SEE ALSO:

, , ,

EXAMPLES:

dialog.start(c('-xrm "SdlgMotif*purpleDialog*background: purple"', 
               '-xrm "SdlgMotif*redDialog*background: red"')) 
purple.dialog <- dialog.create(list("Pick a number"=0:10), 
                               xdialog="purpleDialog") 
red.dialog <- dialog.recreate(purple.dialog, xdialog="redDialog") 
answers <- dialog.display(purple.dialog) 
dialog.off() 
dialog.start('-xrm "SdlgMotif*greenDialog*background: green"') 
green.dialog <- dialog.recreate(red.dialog, xdialog='greenDialog')