Rev 9375 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{winDialog}\alias{winDialog}\alias{winDialogString}\title{Dialog Boxes under Windows}\description{Put up a Windows dialog box to communicate with the user. There arevarious types, either for the user to select from a set of buttons orto edit a string.}\usage{winDialog(type = c("ok", "okcancel", "yesno", "yesnocancel"), message)winDialogString(message, default)}\arguments{\item{type}{The type of dialog box. It will have the buttons impliedby its name.}\item{message}{The information field of the dialog box.}\item{default}{The default string.}}}\value{For \code{winDialog} a character string giving the name of the buttonpressed (in capitals) or \code{NULL} (invisibly) if the user had nochoice.For \code{winDialogString} a string giving the contents of the textbox when \code{Ok} was pressed, or \code{NULL} if code{Cancel} was pressed.}\note{The standard keyboard accelerators work with these dialog boxes:where appropriate \code{Return} accepts the default action,\code{Esc} cancels and the underlined initial letter (\code{Y} or\code{N}) can be used.}\seealso{\code{\link{winMenus}}\cr\code{\link{file.choose}} to select a file\crpackage \code{windlgs} in the package source distribution for ways toprogram dialogs in C in the \code{GraphApp} toolkit.}\examples{\dontrun{winDialog("yesno", "Is it OK to delete file blah")}}\keyword{utilities}