Autor Beitrag
Wolle92
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 16.06.07 07:51 
Ich habe zu Übungszwecken ein Datei-Suchprogramm geschrieben, was an sich auch ganz gut funktioniert...
Nur werden die Ergebnisse bis jetzt in zwei ListBox-Komponenten angezeigt (suchprogramm.jpg)
Ich möchte jetzt, dass das ganze in eine einzige Komponente eingetragen wird aber trotzdem in zwei Spalten steht...

Wie lässt sich das machen?
Einloggen, um Attachments anzusehen!
bflegel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 193
Erhaltene Danke: 1

Win XP, Win 7, BS2000
D5
BeitragVerfasst: Sa 16.06.07 08:00 
Guten Morgen,

nimm doch einfach ein Stringgrid

Bye bflegel

_________________
I know all the jokes about my name
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 16.06.07 08:04 
Besser wäre wohl noch ein Listview (Meine Meinung).

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 16.06.07 08:18 
ich verstehe weder wie ich es mit dem einen, noch wie ich es mit dem anderen machen soll...
So soll das dann Aussehen:
Einloggen, um Attachments anzusehen!
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Sa 16.06.07 08:27 
Klatsch eine ListView aufs Formular, setz ViewStyle auf vsReport und bearbeite deine Spaltentitel mit der Eigenschaft Columns. Hinzufügen kannst du Items dann per

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
var
  liNew: TListItem;
begin
  liNew := ListView1.Items.Add;
  liNew.Caption := 'Eintrag erste SPalte';
  liNew.SubItems.Add('Eintrag zweite Spalte');
  liNew.SubItems.Add('Eintrag dritte Spalte');
  // etc.
end;



MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
Wolle92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1296

Windows Vista Home Premium
Delphi 7 PE, Delphi 7 Portable, bald C++ & DirectX
BeitragVerfasst: Sa 16.06.07 08:39 
jau, danke, hat geklappt