Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Next: , Previous: Face Resources, Up: X Resources


D.4 Lucid Menu X Resources

If the Emacs installed at your site was built to use the X toolkit with the Lucid menu widgets, then the menu bar is a separate widget and has its own resources. The resource names contain ‘pane.menubar’ (following, as always, the name of the Emacs invocation, or ‘Emacs’, which stands for all Emacs invocations). Specify them like this:

     Emacs.pane.menubar.resource:  value

For example, to specify the font ‘8x16’ for the menu-bar items, write this:

     Emacs.pane.menubar.font:  8x16

Resources for non-menubar toolkit pop-up menus have ‘menu*’, in like fashion. For example, to specify the font ‘8x16’ for the pop-up menu items, write this:

     Emacs.menu*.font:	8x16

For dialog boxes, use ‘dialog’ instead of ‘menu’:

     Emacs.dialog*.font:	8x16

The Lucid menus can display multilingual text in your locale. For more information about fontsets see the man page for XCreateFontSet. To enable multilingual menu text you specify a fontSet resource instead of the font resource. If both font and fontSet resources are specified, the fontSet resource is used. To specify ‘-*-helvetica-medium-r-*--*-120-*-*-*-*-*-*,*’ for both the popup and menu bar menus, write this:

     Emacs*fontSet:  -*-helvetica-medium-r-*--*-120-*-*-*-*-*-*,*

Experience shows that on some systems you may need to add ‘shell.’ before the ‘pane.menubar’ or ‘menu*’. On some other systems, you must not add ‘shell.’.

Here is a list of the specific resources for menu bars and pop-up menus:

font
Font for menu item text.
fontSet
Fontset for menu item text.
foreground
Color of the foreground.
background
Color of the background.
buttonForeground
In the menu bar, the color of the foreground for a selected item.
horizontalSpacing
Horizontal spacing in pixels between items. Default is 3.
verticalSpacing
Vertical spacing in pixels between items. Default is 2.
arrowSpacing
Horizontal spacing between the arrow (which indicates a submenu) and the associated text. Default is 10.
shadowThickness
Thickness of shadow line around the widget. Default is 1.

Also determines the thickness of shadow lines around other objects, for instance 3D buttons and arrows. If you have the impression that the arrows in the menus do not stand out clearly enough or that the difference between “in” and “out” buttons is difficult to see, set this to 2. If you have no problems with visibility, the default probably looks better. The background color may also have some effect on the contrast.

margin
The margin of the menu bar, in characters. Default is 1.

 
 
  Published under the terms of the GNU General Public License Design by Interspire