WidgetAlign[]
is a widget layout placeholder that provides an alignment marker.
WidgetAlign[{ref,After},Before]
makes a specific request for the next widget to align to another widget by named reference ref, and aligned based on Before and After specifications on both widgets.
WidgetAlign
WidgetAlign[]
is a widget layout placeholder that provides an alignment marker.
WidgetAlign[{ref,After},Before]
makes a specific request for the next widget to align to another widget by named reference ref, and aligned based on Before and After specifications on both widgets.
范例
基本范例 (1)
Needs["GUIKit`"]ref = GUIRun[
Widget["Panel",
{Widget["Label", {"text" -> "These are inputs"},
WidgetLayout -> {"Alignment" -> Center}, Name -> "mainLabel"],
{Widget["Label", {"text" -> "BB"}],
Widget["TextField", {"columns" -> 10}],
Widget["Label", {"text" -> "in"}],
Widget["CheckBox", {"label" -> "round"}]},
{Widget["Label", {"text" -> "CCC"}],
Widget["TextField", {"columns" -> 10}],
Widget["Label", {"text" -> "m"}],
Widget["Label", {"text" -> " OR "}],
Widget["TextField", {"columns" -> 10}],
Widget["Label", {"text" -> "km"}]},
{WidgetFill[],
Widget["Button", {"text" -> "Submit"}],
WidgetFill[]}
}]
]GUIScreenShot[ref]ref = GUIRun[
Widget["Panel",
{Widget["Label", {"text" -> "These are inputs"},
WidgetLayout -> {"Alignment" -> Center}, Name -> "mainLabel"],
{Widget["Label", {"text" -> "BB"}],
WidgetAlign[],
Widget["TextField", {"columns" -> 10}],
WidgetAlign[],
Widget["Label", {"text" -> "in"}],
WidgetAlign[],
Widget["CheckBox", {"label" -> "round"}]},
{Widget["Label", {"text" -> "CCC"}],
WidgetAlign[],
Widget["TextField", {"columns" -> 10}],
WidgetAlign[],
Widget["Label", {"text" -> "m"}],
Widget["Label", {"text" -> " OR "}],
WidgetAlign[],
Widget["TextField", {"columns" -> 10}],
Widget["Label", {"text" -> "km"}]},
{WidgetFill[],
WidgetAlign[{"mainLabel", After}, Before],
Widget["Button", {"text" -> "Submit"}],
WidgetFill[]}
}]
]GUIScreenShot[ref]相关指南
文本
Wolfram Research (2007),WidgetAlign,Wolfram 语言函数,https://reference.wolfram.com/language/GUIKit/ref/WidgetAlign.html.
CMS
Wolfram 语言. 2007. "WidgetAlign." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GUIKit/ref/WidgetAlign.html.
APA
Wolfram 语言. (2007). WidgetAlign. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GUIKit/ref/WidgetAlign.html 年
BibTeX
@misc{reference.wolfram_2026_widgetalign, author="Wolfram Research", title="{WidgetAlign}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GUIKit/ref/WidgetAlign.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_widgetalign, organization={Wolfram Research}, title={WidgetAlign}, year={2007}, url={https://reference.wolfram.com/language/GUIKit/ref/WidgetAlign.html}, note=[Accessed: 11-September-2026]}