Rev 62133 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/windows/winDialog.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\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}{character. The type of dialog box. It will have thebuttons implied by its name.}\item{message}{character. The information field of the dialogbox. Limited to 255 chars (by Windows, checked by R).}\item{default}{character. 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.These functions are only available on Windows.}\seealso{\code{\link{winMenuAdd}}\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}