arrangeWindows(utils)
arrangeWindows()所属R语言包:utils
Rearrange windows in the R GUI.
重新在R GUI窗口。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function allows you to tile or cascade windows, or to minimize or restore them.
此功能允许您平铺或层叠的窗口,或最小化或还原。
用法----------Usage----------
arrangeWindows(action, windows, preserve = TRUE, outer = FALSE)
参数----------Arguments----------
参数:action
The action to perform on the windows. The choices are c("vertical", "horizontal", "cascade", "minimize", "restore") with default "vertical"; see the Details below for the interpretation. Abbreviations may be used.
在窗户上要执行的动作。选择c("vertical", "horizontal", "cascade", "minimize", "restore")默认"vertical";见下面详细解释。可以使用缩写。
参数:windows
A list of window handles, by default produced by getWindowsHandles().
窗口的列表处理,由getWindowsHandles()产生的默认。
参数:preserve
If TRUE, when tiling preserve the outer boundary of the collection of windows; otherwise make them as large as will fit.
如果TRUE,瓦片保存收集的Windows的外部边界,否则他们将适合大时。
参数:outer
This argument is only used in MDI mode. If TRUE, tile the windows on the system desktop. Otherwise, tile them within the MDI frame.
此参数只用于在MDI模式。如果TRUE,平铺窗口系统的桌面上“。否则,瓷砖MDI框架内。
Details
详情----------Details----------
The actions are as follows:
行动如下:
"vertical" Tile vertically.
"vertical"垂直平铺。
"horizontal" Tile horizontally.
"horizontal"瓷砖水平。
"cascade" Cascade the windows.
"cascade"梯级窗户。
"minimize" Minimize all of the windows.
"minimize"最小化所有的窗口。
"restore" Restore all of the windows to normal size (not minimized, not maximized).
"restore"恢复到正常大小(最小化,最大化)的所有窗户。
The tiling and cascading are done by the standard Windows API functions, but unlike those functions, they will apply to all of the windows in the windows list.
瓷砖和级联是通过标准的Windows API函数,但不像那些功能,它们将适用于所有的窗户windows列表。
By default, windows is set to the result of getWindowsHandles() (with one exception described below). This will select windows belonging to the current R process. However, if the global environment contains a variable named .arrangeWindowsDefaults, it will be used as the argument list instead. See the getWindowsHandles man page for a discussion of the optional arguments to that function.
默认情况下,windows设置为getWindowsHandles()(有一个例外,如下所述)的结果。这将选择属于当前R进程的窗口。然而,如果全球环境包含名为.arrangeWindowsDefaults一个变量,它会被用来作为参数列表,而不是。见getWindowsHandles男子页面功能的可选参数的讨论。
When action="restore" is used with windows unspecified, minimized = TRUE is added to the argument list of getWindowsHandles so that minimized windows will be restored.
当action="restore"windows不明,minimized = TRUE添加到参数列表getWindowsHandles使最小化的窗口将恢复。
In MDI mode, by default tiling and cascading will happen within the R GUI frame. However, if outer=TRUE, tiling is done on the system desktop. This will generally not give desirable results if any R child windows are included within windows.
在MDI模式,平铺在默认情况下会发生级联的R GUI框架内。然而,outer=TRUE如果,平铺系统桌面上完成。这一般不会给予理想的结果,如果任何R的子窗口都包含在windows。
值----------Value----------
This function is called for the side effect of arranging the windows. The list of window handles is returned invisibly.
这个函数被调用的安排窗口的副作用。无形的窗口句柄列表返回。
作者(S)----------Author(s)----------
Duncan Murdoch
参见----------See Also----------
getWindowsHandles
getWindowsHandles
举例----------Examples----------
## Not run: [#无法运行:]
arrangeWindows("v")
# This default is useful only in SDI mode: it will tile any Firefox window [这个默认是有用的,只有在SDI模式:它会平铺任何Firefox窗口]
# along with the R windows[与R窗口]
.arrangeWindowsDefaults <- list(c("R", "all"), pattern=c("", "Firefox"))
arrangeWindows("v")
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|