为什么TToolBar不想包装?

Mar*_*unu 2 delphi toolbar delphi-2009

TToolBar在我的表格上加了一些TSpeedButton.我确保将自己Wrapable设置为true并运行应用程序.但是当我缩小表格时,按钮不会换行.我错过了什么?我正在使用Delphi 2009.

Ken*_*ite 5

您需要设置TToolBar.AutoSizeto True,并在按钮组之间添加分隔符,以便将工具栏拆分为多个部分.

这也是更好地使用TToolButtonTToolBar,而不是,因为它的设计与他们合作.右键单击工具栏,然后选择New ButtonNew Separator.将要显示的图像分配给a TImageList,并将图像列表分配给TToolbar.Images属性,然后ImageIndex为每个按钮设置以显示列表中的图像.(另一个优点是您也可以将图像列表HotImagesDisabledImages属性分开.)