Menu Attributes

A menu has a few global attributes, and then each menu entry has many button-like attributes that describe its appearance and behavior. Table 27-5 specifies the attributes that apply globally to the menu, unless overridden by a per-entry attribute. The table uses the X resource names, which may have a capital at interior word boundaries. In Tcl commands, use all lowercase and a leading dash.

Table 27-5. Menu attribute resource names.
activeBackgroundBackground color when the mouse is over a menu entry.
activeForegroundText color when the mouse is over a menu entry.
activeBorderWidthWidth of the raised border around active entries.
backgroundThe normal background color for menu entries.
borderWidthWidth of the border around all the ...

Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.