哪位朋友用过Delphi7中的actionmanager控件?

chenhony 2002-11-30 02:18:39
不知道哪位朋友用过delphi7中的actionmanager组件?
英文帮助我看得不大明白,不过大意是这个组件可以把程序的菜单
和工具条设置为XP风格,用法是
1 添加actionmanager组件
2设置actionmanager的style属性设置为xp style
3可以结合standardcolormap or xpcolormap定制用户自定义的风格
然后程序菜单和工具条就会以XP风格显示.
我按照上面的方法试了一下,可是菜单还是普通的Win32风格,
不知道是不是我的英文水平太菜了理解错了?

下边是英文帮助内容:
Just as you can add different colors and icons to individual menus and toolbars, you can select different menu and toolbar styles to give your application a comprehensive look and feel. In addition to the standard style, your application can take on the look of Windows XP, Encarta鈩? or a custom presentation using a coordinated color scheme. To give your application a coherent look and feel, the IDE uses colormaps.

A colormap can be simple, merely adding the appropriate colors to existing menus and toolbars. Or, a colormap can be complex, altering numerous subtle details of a menu's or toolbar's look and feel, including the smallest button edges or menu shadows. The XP colormap, for example, has numerous subtle refinements for menu and toolbar classes. The IDE handles the details for you, automatically using the appropriate colormaps.

By default, the component library uses the XP style. To centrally select an alternate style for all your application's menus and toolbars, use the Style property on the ActionManager component.

1 From the Additional page of the Component palette, drop an ActionManager component onto a form.
2 In the Object Inspector, select the Style property. You can choose from a number of different styles.
3 Once you've selected a style, your application's menus and toolbars will take on the look of the new colormap.

You can customize the look and feel of a style using colormap components. To customize the look and feel of a colormap:

1 From the Additional page of the Component palette, drop the appropriate colormap component onto a form (for example, XPColorMap or StandardColorMap). In the Object Inspector, you will see numerous properties to adjust appearance, many with drop downs from which you can select alternate values.
2 Change each ToolBar or menu's ColorMap property to point to the colormap object that you dropped on the form.
3 In the Object Inspector, adjust the colormap's properties to change the appearance of your toolbars and menus as desired.

Note

Be careful when customizing a colormap. When you select a new, alternate colormap, your old settings will be lost. You may want to save a copy of your application if you want to experiment with alternate settings and possibly return to a previous customization
...全文
101 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
blueshu 2002-11-30
  • 打赏
  • 举报
回复
都在用7了我还用5
CloneCenter 2002-11-30
  • 打赏
  • 举报
回复
你首先得有一个 ActionMenuBar ,在 ActionMenuBar 上出现的才是 XP 样式的菜单,用 TMainMenu 是和系统一样的。

5,386

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧