【问题标题】:Which properties I must set in a TToolbar in order to show a beveled line between the rows?我必须在 TToolbar 中设置哪些属性才能在行之间显示斜线?
【发布时间】:2014-05-23 05:00:28
【问题描述】:

当工具栏设置为自动调整大小时,我必须在 TToolbar 控件中设置哪些属性才能在按钮的行之间显示斜线。

在此图像上,工具栏仅显示一行带有按钮

如果我调整父窗体的大小,工具栏会在更多行上重新分配按钮,并在每行的底部添加斜线。

我在 TToolbar 控件中尝试了许多属性,但在调整工具栏大小时没有添加斜线。

这些是当前工具栏设置

  object ToolBar1: TToolBar
    AlignWithMargins = True
    Left = 3
    Top = 3
    Width = 137
    Height = 74
    AutoSize = True
    BorderWidth = 1
    Caption = 'ToolBar1'
    EdgeBorders = [ebLeft, ebTop, ebRight, ebBottom]
    Images = ImageList1
    TabOrder = 0

这就是外观。

【问题讨论】:

    标签: delphi delphi-xe4


    【解决方案1】:

    您应该使用分隔符对工具按钮进行分组。它们可以通过右键单击工具栏并选择“新建分隔符”来添加。在第一个快照中,有几个分隔符,因此将显示换行符。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-08-29
      • 2017-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-05
      相关资源
      最近更新 更多