Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Library: VCL / WinForms / Controls (https://www.delphipraxis.net/24-library-vcl-winforms-controls/)
-   -   Delphi ListBox mit Spalten (https://www.delphipraxis.net/3479-listbox-mit-spalten.html)

Daniel B 14. Mär 2003 22:35


ListBox mit Spalten
 
Hallo,

so kann man einfach Spalten in einer ListBox erstellen.
Delphi-Quellcode:
procedure TForm1.Button4Click(Sender: TObject);
begin
  ListBox1.TabWidth := 25;
  ListBox1.Items.Add('Spalte 1'^I'Spalte 2'^I'Spalte 3');
end;
Grüsse, Daniel :hi:

Daniel B 1. Apr 2003 22:06

Noch eine kleine Info.
Anstatt ^I kann man auch
Delphi-Quellcode:
'Spalte1' + #9 + 'Spalte2' + #9 + 'Spalte3'
nehmen.
#9 = HT, ist Ascii und steht für Horizontal Tabulation = Horizontaltabulator.

Grüsse, Daniel :hi:


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:29 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz