is an option for menu-generating constructs that specifies the style to use in displaying menu items.
MenuStyle
is an option for menu-generating constructs that specifies the style to use in displaying menu items.
Details
- Any style specification used in Style can be used as a setting for MenuStyle.
- Typical forms of settings include:
-
"style" a named style from the current stylesheets {opt1->val1,…} a list of explicit option settings {"style",opt1->val1,…} a named style modified by option settings - Color directives such as Red, as well as text specifications such as Bold or Small, can be given in place of options, just as in Style.
- Giving the option setting MenuStyle->spec is effectively equivalent to replacing the menu elements of a formatting or related construct by Style[label,spec].
- Any outside styles not explicitly overridden by settings in MenuStyle will still be used.
- MenuStyle is effectively applied after DefaultMenuStyle.
Examples
open all close allBasic Examples (1)
Specify overall style of all the menu-like elements:
PopupMenu[1, Range[5], MenuStyle -> {Orange}]MenuStyle can be used to specify styles that should not be applied to the menu's base appearance:
PopupMenu[1, Range[5], Button["Choose value"], Button["Choose value"], MenuStyle -> Orange]Scope (1)
MenuStyle affects the appearance of menus, but does not change their actions:
ActionMenu["Print", {1 :> Print[1], 2 :> Print[2]}, MenuStyle -> {24}]See Also
Related Guides
History
Text
Wolfram Research (2010), MenuStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/MenuStyle.html.
CMS
Wolfram Language. 2010. "MenuStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MenuStyle.html.
APA
Wolfram Language. (2010). MenuStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MenuStyle.html
BibTeX
@misc{reference.wolfram_2026_menustyle, author="Wolfram Research", title="{MenuStyle}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/MenuStyle.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_menustyle, organization={Wolfram Research}, title={MenuStyle}, year={2010}, url={https://reference.wolfram.com/language/ref/MenuStyle.html}, note=[Accessed: 12-June-2026]}