Autor Beitrag
Master_BB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 06.12.03 17:33 
hya,
ich hab das problem das in eine listbox 2 werte müssen einmal ein string name und ein interger wert. Dabei soll der name ganz links sein der integer wert ganz rechts. da ich das nicht hinbekommen hab hab ich 2 listboxen genommen die sie am ende überschneiden.
Weiß jemand wie ich das machen mit ein wert auf einer zeile ganz vorn einer ganz hinten???
Amsonsten würde ich gerne wissen wie ich die Scrollbars der ListBoxen wegbekomme.

Greetz
Master_BB
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 06.12.03 17:37 
Zitat:
ich hab das problem das in eine listbox 2 werte müssen


Muss es denn unbedingt eine Listbox sein?
Das richtige Control dafür wäre eine TListView.
Master_BB Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 06.12.03 17:55 
ne muss es nicht jedoch hab ich gerade mit der Listview herrum gedocktort und ich krieg das net hin damit in einer zwiele halt immer der name mit der zahl steht
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 06.12.03 18:03 
Wenn du eine ListView auf deine Form gesetzt hast, dann
setze den ViewStyle auf vsReport.

Mit der rechten Maustaste kannst du dann im "Spalten Editor"
(Columns Editor) zwei Spalten hinzufügen.
Master_BB Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 06.12.03 18:15 
aja THX
kannst mir noch sagen wie ich so ne zeile da rein füge wie bei der Listbox mit LixBox1.Items.Add(lala) gehts ja net.
also das der in spalte 1 was macht und in spalte 2

GREETZ
hilfst mir sehr damit
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 06.12.03 18:25 
so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  with ListView1.Items.Add do
  begin
    Caption:= 'Item1'; // Spalte 1
    Subitems.Add('1'); // Spalte 2
  end;
Master_BB Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 06.12.03 18:45 
ah ja vielen dank.
Jedoch gibt es noch ein Problem die Spalten oben bleiben nocht so wie sie sind. Wenn ich sie lang ziehe sind sie im programm (beim ausführen) wieder auf standart.