Board index » cppbuilder » TListView with multi line and multi column
sfirouz
![]() CBuilder Developer |
TListView with multi line and multi column2008-05-13 07:24:03 AM cppbuilder45 Hi: I am trying to display some information in a TListBox. I need to have multi columns and I need to be able to put multiple line of text in a sinlgle item. I cannot use the TListView because it does not support the Multi line and there is no OnMeasureItem to set the height of each item. So I decided to use the TListBox with Style property set to lbOwnerDrawVariable and a THeaderControl to achive my goal. The first time the text is displayed everything works fine. But if I try to resize one of the columns, I cannot get the TListBox to re-measure each item. I have tried using Repaint(), Refresh() and Invalidate() none of which has worked. Any Ideas? Useing BDS 2007 |