怎样使TCheckListBox多列显示?先谢谢!

解决方案 »

  1.   

    设置CheckListBox.Columns就可以了
    不过只有你的所有items的高度大于checklistbox的高度时,才会出现多列显示下面是delphi的help
    Multi-column list boxes have a horizontal scrollbar that allows users to view multiple columns as they wrap. The default value for Columns is 0, meaning that the list box is not multi-column. That is, users can scroll only vertically and the list of items will not wrap.For Columns values greater than 0, multiple columns accommodate the items as they wrap beyond the bottom of the list box. The Columns property specifies the number of columns that are visible without having to horizontally scroll the list box.
      

  2.   

    不好意思没把问题说清楚:
    我想把checklistbox用以下方式输出:列1        列2       列3
    check      name1     address1
    check      name2     address2
    check      name3     address3
    .....
      

  3.   

    不好意思,不能用 CheckListBox,可以用 TListView 试试。