免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 999 | 回复: 0

Fvwm Manual(L1726-L1819) [复制链接]

论坛徽章:
0
发表于 2006-03-13 23:34 |显示全部楼层
By
[email=Cyvins@HUST]Cyvins@HUST[/email]

If the menu-label contains an ampersand ('&'), the next character is taken as a hot-key for the menu item. Hot-keys are underlined in the label. To get a literal '&', insert "&&". Pressing the hot-key moves through the list of menu items with this hot-key or selects an item that is the only one with this hot-key.
如果菜单标签包含一个&,那么紧跟着的那个字符就会被作为这个菜单条目的快捷键。标签中的快捷键标有下划线。如果想要得到'&',要插入"&&"。按下快捷键,聚焦会在使用这个相同快捷键的所有菜单条目中移动,如果只有一个条目使用这个快捷键,那么这个条目就会被选中。
If the menu-label contains a sub-string which is set off by stars, then the text between the stars is expected to be the name of an image file to insert in the menu. To get a literal '*', insert "**". For example
如果菜单标签包含一个以*分离的子字符串,那么*之间的内容会被处理为插入菜单中的图像文件的名字。如果要得到一个'*',插入"**"。比如:
+ Calculator*xcalc.xpm* Exec exec xcalc
inserts a menu item labeled "Calculator" with a picture of a calculator above it. The following:
插入一个Calculator条目,并在它上面放置一个计算器的图片。下面的:
+ *xcalc.xpm*           Exec exec xcalc
Omits the "Calculator" label, but leaves the picture.
忽略Calculator标签,只是留下一个图片。
If the menu-label contains a sub-string which is set off by percent signs, then the text between the percent signs is expected to be the name of image file (a so called mini icon to insert to the left of the menu label. A second mini icon that is drawn at the right side of the menu can be given in the same way. To get a literal '%', insert "%%". For example
如果菜单标签包含一个以%分离的子字符串,那么%之间的内容会被处理为插入菜单中的图像文件的名字(就是被放在菜单标签左侧的所谓的小图标)。可以以同样的方式给出菜单右侧的另一个小图标。如果要得到一个'%',插入"%%"。比如:
+ Calculator%xcalc.xpm% Exec exec xcalc
inserts a menu item labeled "Calculator" with a picture of a calculator to the left. The following:
插入一个Calculator条目,并在它左侧放置一个计算器的图片。下面的:
+ %xcalc.xpm%           Exec exec xcalc
Omits the "Calculator" label, but leaves the picture. The pictures used with this feature should be small (perhaps 16x16). If the menu-name (not the label) contains a sub-string which is set off by at signs (
[email='@']'@'[/email]
), then the text between them is expected to be the name of an xpm or bitmap file to draw along the left side of the menu (a side pixmap). You may want to use the SidePic option of the MenuStyle command instead. To get a literal
[email='@']'@'[/email]
, insert "@@". For example
忽略Calculator标签,只是留下一个图片。用于这种情况的图片应该都是小图片(比如16X16)。如果菜单名字(不是菜单标签)包含一个@分离的子字符串,那么@之间的内容被处理xpm或者bitmap格式的文件名,这个文件被放在菜单左侧(a side pixmap)。你可能要用 MenuStyle命令的SidePic选项来代替它。如果要得到一个
[email='@']'@'[/email]
,插入"@@"。比如:
AddToMenu
StartMenu@linux-menu.xpm
@
creates a menu with a picture in its bottom left corner.
生成一个菜单,并在它的左下角放置一个图片。
If the menu-name also contains a sub-string surrounded by '^'s, then the text between '^'s is expected to be the name of an X11 color and the column containing the side picture is colored with that color. You can set this color for a menu style using the SideColor option of the MenuStyle command. To get a literal '^', insert "^^". Example:
如果菜单名字也包含一个由 '^'包围的子字符串,那么在'^'之间的文字会被处理为X11颜色的名字,并且包含side picture的一栏,会被那种颜色渲染。你也可以使用 MenuStyle命令的SideColor选项来设置这个颜色。如果要得到一个'^',插入"^^"。比如:
AddToMenu
[email=StartMenu@linux-menu.xpm@^blue]StartMenu@linux-menu.xpm@^blue[/email]
^
creates a menu with a picture in its bottom left corner and colors with blue the region of the menu containing the picture.
生成一个菜单,并在它的左下角放置一个图片,包含图片的区域被渲染为蓝色。
In all the above cases, the name of the resulting menu is name specified, stripped of the substrings between the various delimiters.
在所有上面的情况,名字是指去除所有的由各种分割符包含的子字符串后得到的特定的名字。
ChangeMenuStyle menustyle menu ...
Changes the menu style of menu to menustyle. You may specified more than one menu in each call of ChangeMenuStyle.
改变菜单的样式为menustyle。你在每次调有ChangeMenuStyle时,可能指定不止一个菜单。
ChangeMenuStyle pixmap1 \
  ScreenSaverMenu ScreenLockMenu
CopyMenuStyle orig-menustyle dest-menustyle
Copy orig-menustyle to dest-menustyle, where orig-menustyle is an existing menu style. If the menu style dest_menustyle does not exist, then it is created.
复制orig-menustyle为dest-menustyle,这儿的orig-menustyle是一个已经存在的菜单样式,如果dest-menustyle不存在,那么就生成一个。
DestroyMenu [recreate] menu
Deletes a menu, so that subsequent references to it are no longer valid. You can use this to change the contents of a menu during an fvwm session. The menu can be rebuilt using AddToMenu. The optional parameter recreate tells fvwm not to throw away the menu completely but to throw away all the menu items (including the title).
删除一个菜单,因此后面对它的引用都不再有效。你可以使用这种方法在一个fvwm进程中改变菜单的内容。菜单可以通过AddToMenu重新建立。
DestroyMenu Utilities
DestroyMenuStyle menustyle
Deletes the menu style named menustyle and changes all menus using this style to the default style, you cannot destroy the default menu style.
删除名字为menustyle的菜单样式,将所有用这种格式的菜单都改为系统默认的样式,你是不可能删掉系统默认的菜单形式的。
DestroyMenuStyle pixamp1


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/14381/showart_84890.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2021中国系统架构师大会

【数字转型 架构重塑】2021年5月20日-22日第十三届中国系统架构师大会将在云端进行网络直播。

大会为期3天的议程,涉及20+专场,近120个主题,完整迁移到线上进行网络直播对会议组织来说绝非易事;但考虑到云端会议的直播形式可以实现全国各地技术爱好者的参与,也使ITPUB作为技术共享交流平台得到更好的普及,我们决定迎难而上。
http://sacc.it168.com/


大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP