+
+! If xterm is built with a toolbar, the widget hierarchy looks like this,
+! showing widget name / class names. The complete menu hierarchy is built
+! at startup because it is needed to make the layout work for the menubar:
+!
+! xterm/XTerm
+! form/Form
+! menubar/Box
+! mainMenuButton/MenuButton
+! mainMenu/SimpleMenu
+! menuLabel/SmeBSB
+! toolbar/SmeBSB
+! ...
+! vtMenu/SimpleMenu
+! menuLabel/SmeBSB
+! scrollbar/SmeBSB
+! ...
+! fontMenu/SimpleMenu
+! menuLabel/SmeBSB
+! fontdefault/SmeBSB
+! ...
+! tekMenu/SimpleMenu
+! menuLabel/SmeBSB
+! fontdefault/SmeBSB
+! ...
+! vt100/VT100
+! tektronix/TopLevelShell
+! shellext/VendorShellExt
+! tek4014/Tek4014
+!
+! If built without a toolbar, the widget hierarchy is simpler, because there
+! is no form, and the popup menu widgets are created only when they are first
+! used.
+!
+! xterm/XTerm
+! shellext/VendorShellExt
+! mainMenu/SimpleMenu
+! menuLabel/SmeBSB
+! ...
+! ...
+! vt100/VT100
+! tektronix/TopLevelShell
+! shellext/VendorShellExt
+! tek4014/Tek4014
+!
+! A more complete list of the widget/class names can be obtained using editres
+! to dump a file. Some widget names are not available until the corresponding
+! menu has been created.
+
+! These resources reduce space around the menubar, by eliminating padding in
+! the enclosing form (Thickness) and the border of the Box which represents
+! the menubar widget.
+*form.Thickness: 0
+*menubar.borderWidth: 0
+
+! If we wanted to eliminate the border of the popup menus, we could do this
+! instead, since they are children of the menubar:
+!*menubar.*.borderWidth: 0
+
+! Eliminate the border of the buttons in the menubar, so the only line around
+! the text is for the highlighted button:
+*MenuButton*borderWidth: 0
+
+! Set a border for the menus to make them simpler to distinguish against the
+! vt100 widget:
+*SimpleMenu*borderWidth: 2
+
+! Set polish diacritical letters (¡£¦¬¯±³¶¼¿ with ÆÊÑÓæêñó already set) the same class as regular letters
+! in order to properly match while double-click word selection
+*charClass: 161:48,163:48,166:48,172:48,175:48,177:48,179:48,182:48,188:48,191:48,198:48,202:48,209:48,211:48,230:48,234:48,241:48,243:48