Çeviri: Ramazan Gülbahar.
Listbox sadece bir kolon kullanarak bilgileri gösterir, eğer aynı satırda birden fazla bilgi göstermek istersek ne yapacağız:
TabWidth özelliğinden: Kolonların genişliğini ayarlayabiliriz bu örnek için ben 15 değerini verdim.
ListBoxtaki nesneleri kolon olarak ayarlamak için '^I', kullanmalısın:
Kod: Tümünü seç
begin
ListBox1.Items.Add('First'^I'Second'^I'Third') ;
ListBox1.Items.Add('C1R1'^I'C2R1'^I'C3R1') ;
ListBox1.Items.Add('C1R2'^I'C2R2'^I'C3R2') ;
ListBox1.Items.Add('C1R3'^I'C2R3'^I'C3R3') ;
ListBox1.Items.Add('C1R4'^I'C2R4'^I'C3R4') ;
ListBox1.Items.Add('C1R5'^I'C2R5'^I'C3R5') ;
ListBox1.Items.Add('C1R6'^I'C2R6'^I'C3R6') ;
ListBox1.Items.Add('C1R7'^I'C2R7'^I'C3R7') ;
ListBox1.Items.Add('C1R8'^I'C2R8'^I'C3R8') ;
ListBox1.Items.Add('C1R9'^I'C2R9'^I'C3R9') ;
end;