开发者

Delphi: MainMenu and ToolBar. Alternative of CoolBar

I use a Toolbar as a MainMenu!

I embed a MainMenu into a ToolBar. But the text of the MainMenu (button's captions) is not in the center of ToolButtons.

I have:

Delphi: MainMenu and ToolBar. Alternative of CoolBar

I need:

Delphi: MainMenu and ToolBar. Alternative of CoolBar

I create a ToolB开发者_如何学运维ar, 4 ToolButtons and assign each menu for each button. Or I assign a MainMenu in "Menu" of a ToolBar. When I create a ToolBotton then it's caption is already at the bottom. Does nobody have the same?

After all these I will embed the ToolBar as the MainMenu into a CoolBar. Finally, I will have the same as in Windows Firewall.

Are there alternatives to have the same effect like the CoolBar of Windows Firewall (with the MainMenu + a break-line + ToolButtons of the ToolBar)? I use Delphi 2010.

How to do this? How to use properly a MainMenu in a ToolBar? Thanks!

P.S. Another example and it is not from Windows:

Delphi: MainMenu and ToolBar. Alternative of CoolBar

and how to copy the last example...


Here's what might help:

  1. Drop an empty TImageList on the form.

  2. Assign it to the ToolBar.

  3. Set ToolBar.List to True.

  4. Adjust ImageList.Height to your taste.

This will result in the buttons adjusting their heights to the ImageList.Height value and their captions getting centred vertically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜