我需要在主窗体的右侧有两个 TToolBar ,所以我放置了三个 TPanel 进行对齐,然后将 TToolBar 放入其中。我一直在尝试告诉工具按钮在过去一天中具有相同的宽度,但无济于事。这是我所拥有的屏幕截图:
I need to have two TToolBars on the right side of my main form, so I put three TPanels for alignment, and then put the TToolBars inside them. I've been trying to tell the toolbuttons to have the same width for the past day, to no avail. Here's a screen shot of what I've got:
我发现,如果 ShowCaption 设置为 True ,则工具栏会计算按钮宽度自动。我的问题是为什么,以及如何禁用它?
I found out that if ShowCaption is set to True, the toolbars calculate the button width automatically. My question is why, and how to disable this?
推荐答案看看这种方法:
有关更多详细信息: zarko-gajic.iz.hr/ttoolbars-ttoolbutton-autosize-width-issues-empty-caption/
更多推荐
为什么将ShowCaption设置为True时,TToolBar会自动计算按钮宽度?
发布评论