开发者

3 TToolBar's on a TCoolbar band

I have TCoolBar with two bands. On the first band I want to put 3 separate TToolBar's in it. I take TToolBar in TCoolBar and set align to alNone but cannot adjust the size of TCoolBar. I look at m开发者_高级运维y Delphi 5 and it uses TControlBar that the sites tell me to avoid. I'm installing Speed buttons on my Toolbar with spaces and separators to get flat button effects. has any one got a good solution to this problem Thanks in advance.


I can't replicate your problem. Here's what I did (exactly):

  • Started Delphi 7, which gave me a new blank VCL forms application
  • Dropped a TCoolBar on the form, and then dropped three TToolBars on the CoolBar.
  • Hit Escape to change the designer's focus from the last dropped ToolBar.
  • Used Shift+DownArrow to increase the height of the CoolBar so that all the ToolBars were visible.

EDIT: After posting this, I also tried setting the TCoolBar.AutoSize property to True instead of manually resizing as the last step above describes. This also worked properly.

I don't know what

I look at my Delphi 5 and it uses TControlBar that the sites tell me to avoid.

means. What "sites", and why "avoid"? If you're telling us that the Delphi 5 IDE uses TControlBar, IIRC D5's IDE worked just fine.

Also, don't use SpeedButtons on a TToolBar. A TToolBar is designed to hold TToolButtons, which you can put on the TToolBar by right-clicking it and choosing either "New Button" or "New Separator" from the context menu.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜