The R Project SVN R

Rev

Rev 70779 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70779 Rev 75093
Line 1... Line 1...
1
% File src/library/utils/man/select.list.Rd
1
% File src/library/utils/man/select.list.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2013 R Core Team
3
% Copyright 1995-2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{select.list}
6
\name{select.list}
7
\alias{select.list}
7
\alias{select.list}
8
\title{Select Items from a List}
8
\title{Select Items from a List}
Line 23... Line 23...
23
    \code{NULL} for no title.}
23
    \code{NULL} for no title.}
24
  \item{graphics}{logical: should a graphical widget be used?}
24
  \item{graphics}{logical: should a graphical widget be used?}
25
}
25
}
26
\details{
26
\details{
27
  The normal default is \code{graphics = TRUE}.
27
  The normal default is \code{graphics = TRUE}.
28
#ifdef windows
28
  \describe{
29
  This  brings up a modal dialog box with a (scrollable) list
29
    \item{On Windows,}{this brings up a modal dialog box with a (scrollable) list
30
  of items, which can be selected by the mouse.  If \code{multiple} is
30
      of items, which can be selected by the mouse.  If \code{multiple} is
31
  true, further items can be selected or deselected by holding the
31
      true, further items can be selected or deselected by holding the
32
  control key down whilst selecting, and shift-clicking can be used to
32
      control key down whilst selecting, and shift-clicking can be used to
33
  select ranges.
33
      select ranges.
34
 
34
 
35
  Normal termination is via the \sQuote{OK} button or by hitting Enter or
35
      Normal termination is via the \sQuote{OK} button or by hitting Enter or
36
  double-clicking an item.  Selection can be aborted via the
36
      double-clicking an item.  Selection can be aborted via the
37
  \sQuote{Cancel} button or pressing Escape.
37
      \sQuote{Cancel} button or pressing Escape.}
38
#endif
-
 
39
#ifdef unix
-
 
40
  Under the macOS GUI this brings up a modal dialog box
38
    \item{Under the macOS GUI,}{this brings up a modal dialog box
41
  with a (scrollable) list of items, which can be selected by the mouse.
39
      with a (scrollable) list of items, which can be selected by the mouse.}
42
  On other Unix-like platforms it will use a
40
    \item{On other Unix-like platforms}{it will use a Tcl/Tk listbox
43
  Tcl/Tk listbox widget if possible.
41
      widget if possible.}
44
#endif
42
  }
45
 
43
 
46
  If \code{graphics} is FALSE or no graphical widget is available it
44
  If \code{graphics} is FALSE or no graphical widget is available it
47
  displays a text list from which the user can choose by number(s). The
45
  displays a text list from which the user can choose by number(s). The
48
  \code{multiple = FALSE} case uses \code{\link{menu}}.  Preselection is
46
  \code{multiple = FALSE} case uses \code{\link{menu}}.  Preselection is
49
  only supported for \code{multiple = TRUE}, where it is indicated by a
47
  only supported for \code{multiple = TRUE}, where it is indicated by a