Autor Beitrag
o_O
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Do 12.01.06 14:29 
Hiho

Ich habe da eine Frage. Ich habe in meiner ListView 3 verschiedene Columns, und nun will ich z.B. in das 2 ein Item einfügen aber bei:

ausblenden Delphi-Quelltext
1:
ListView1.Items.Add.Caption := Edit1.Text;					


Dann kommt das Item aber immer in den ersten Column ! Wie schaff ichs das es z.B. in das 2 oder 3 kommt ?

Auserdem will ich das die man die Items nicht einzelnt sonder eine ganze Zeile auswählen kann ! Wie bekomm ich das hin?

o_O
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 12.01.06 15:15 
Moin!

Schau dir mal .SubItems an, das ist das, was du suchst. Für´s Zeilen-Markieren schonmal die Options durchsucht? Oder die OH? :wink:

cu
Narses
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Do 12.01.06 22:00 
Öh ^^ Jo mit den Subitem kann ich Items ins 2 Column eintragen aber was ist mit dem 3,4 usw. ? Wie mach ich das ?
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 12.01.06 22:41 
Hallo,

nehme mal an das Du damit weiterkommst:
www.delphi-forum.de/....php?p=270696#270696

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
o_O Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Fr 13.01.06 12:24 
Cool ^^ jetzt weiss ich das mit den Items thx aber ich hab noch nicht heraus gefunden wie ich die ganze Zeile der ListView selektieren kann !?

Weiss das jemand, steht das vielleicht in den Eigenschaften ?

o_O
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 14.01.06 00:27 
user profile icono_O hat folgendes geschrieben:
...aber ich hab noch nicht heraus gefunden wie ich die ganze Zeile der ListView selektieren kann !?
...
steht das vielleicht in den Eigenschaften ?

dann schau doch mal nach "Zeile selectieren" :arrow: RowSelect :wink:

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )