Reputation: 151
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 my 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.
Upvotes: 0
Views: 411
Reputation: 125620
I can't replicate your problem. Here's what I did (exactly):
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.
Upvotes: 1