Deploy[expr]
生成 expr 的一个被部署的版本,其中诸如 Slider、InputField、Locator 和 Button 之类的元素是活动的,但是通常的编辑和选择是不可用的.
Deploy
Deploy[expr]
生成 expr 的一个被部署的版本,其中诸如 Slider、InputField、Locator 和 Button 之类的元素是活动的,但是通常的编辑和选择是不可用的.
更多信息
- 带有 Enabled 选项的所有对象都可以通过 Deploy 保持活动的.
- 在 Deploy 之内的 InputField[e] 可以用于提供任何表达式 e 的可编辑版本.
范例
打开所有单元 关闭所有单元基本范例 (2)
当保持 Slider2D 活动时,不能使用图形交互:
{Graphics[{Disk[], Inset[Slider2D[]]}], Deploy[Graphics[{Disk[], Inset[Slider2D[]]}]]}{Panel["This text is selectable and editable"], Deploy[Panel["This text is not selectable or editable"]]}范围 (5)
Deploy[TextCell["This contents of this cell cannot be selected"]]Deploy["You cannot select individual words or letters in this text"]{Deploy[Overscript["aaa", "bbb"]], Deploy[Pane["Unselectable text"]]}Deploy[Graphics[{Disk[]}]]Deploy[Graphics3D[Cuboid[]]]属性和关系 (5)
在 Deploy 内部的控件仍然可用,即使它被部署构造的深处也没关系:
Deploy[Graphics[{Disk[], Inset[Panel[Row[{"Checkbox: ", Checkbox[]}], Background -> StandardGreen]]}]]部署好的 InputField 内的文本可以选中和编辑:
Deploy[InputField["This text is selectable and editable", String]]InputField 也可以不用边框. 结果看上去和正常文本一样:
Deploy[InputField["This text is selectable and editable", String, Appearance -> "Frameless"]]Deploy 覆盖了 Selectable 和 Editable 选项:
Deploy[Style["This text is not selectable or editable", Selectable -> True, Editable -> True]]设置 Deployed->False 允许创建不可部署的区域:
Deploy[Grid[{{"This text is not selectable or editable", Style["This text is selectable and editable", Deployed -> False]}}, Frame -> All]]MessageDialog["This text is not editable or selectable."];相关的工作流程
- 构建一个 Manipulate ▪
- 使用定位器控件
文本
Wolfram Research (2007),Deploy,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Deploy.html.
CMS
Wolfram 语言. 2007. "Deploy." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Deploy.html.
APA
Wolfram 语言. (2007). Deploy. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Deploy.html 年
BibTeX
@misc{reference.wolfram_2026_deploy, author="Wolfram Research", title="{Deploy}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Deploy.html}", note=[Accessed: 05-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_deploy, organization={Wolfram Research}, title={Deploy}, year={2007}, url={https://reference.wolfram.com/language/ref/Deploy.html}, note=[Accessed: 05-September-2026]}