Autor Beitrag
npx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.01.05 19:33 
[Ich weiss nich ob ich hier richtig bin, falls nich bitte einfach thread verschieben :|]

Also ich hab nun seit 3 Stunden nur rumgegooglet irgendwelche hilfechannels im qnet abgklappert und foren durchgelesen..
da ich beim googlen immer wieder hier rauf stosse frag ich halt mal hier :

Nach langem hin und her hab ich jetz in meinem form ne ListView drinne mit 4 spalten!
meine frage ist nun wie ich diese mit inhalt fülle..
Ich benutze -----------------> Delphi 8 <-------------
ListView1.items.add addet nru in die erste spalte und bevor jemand kommt und sagt dann mach jetz eben subitem... nein es geht neeeed! *flenn*
ich hoffe hier endlich hilfe zu erlangen


danke

mfg npx :|


Moderiert von user profile iconGausi: Topic aus CLX / Delphi Language (Object-Pascal) verschoben am So 30.01.2005 um 19:39
Moderiert von user profile iconGausi: Titel geändert ("Smilie" entfernt)
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: So 30.01.05 19:36 
Hallo,

doch es geht mit SubItems (und das weiss ich sicher, da ich mehrer Programm schon damit gemacht habe). Vielleicht wäre es ja hilfreich, wenn du uns einen Teil aus deinem Quelltext zeigst. In der Hilfe ist dazu übrigens auch ein Beispiel dabei (ich glaube unter Items.Add).

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
npx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.01.05 19:41 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TWinForm.Button1_Click(sender: System.Object; e: System.EventArgs);

begin
LV1.items.add('fuuu');
LV1.SubItems.add('baah');
end;

end.

ausblenden Quelltext
1:
-> [Error] WinForm.pas(138): Undeclared identifier: 'SubItems'					


ich betone nochma DELPHI_8!! :\
das ham mir nu schon so viele gesagt dann noch was mit with bla und so weiter nichts geht :O

Moderiert von user profile iconraziel: Code- und Delphi-Tags hinzugefügt

find ich nett von den mods meine beiträge so flott zu editieren =P sie könnten dann ja auch antworten =P
aber jetz wo ich sehe wo das hinverschoben wurde -> VCL
man kann unter file new sowas auswählen mit VCL form applikation oder so ich habe aber windows form applikation genommen is das schlimm?
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: So 30.01.05 19:54 
Ich nehme an Delphi 8 ist Delphi.net. Deshalb kann ich dir nur einen Pseudo-Delphi-Code geben, aber bei .Net wird sich das genauso verhalten:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  ListItem: TListItem;
begin
  ListItem := LV1.Items.Add;
  ListItem.SubItems.Add('BLÖAW');
  {usw..}
end;
Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 30.01.05 19:57 
Zitat:
find ich nett von den mods meine beiträge so flott zu editieren =P sie könnten dann ja auch antworten =P

Man tut was man kann. Editieren kann ich. :lol:
Aber weil ich keine Lösung habe, kann ich nix antworten.

_________________
We are, we were and will not be.
npx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.01.05 20:00 
Ich hab jetz mal sonen VCL teil geöffnet :O
und da geht dein code ma aber er addet jetz immer in die zweite spalte wie adde ich nu was in die erst?
LV1.Items.Add geht nun nich mehr! :\

kann man das auch ohne das VCL zeugs machen in ner Windows Form Applikation mit ner ListView die auf "Details" steht#


//edit:
danke Gausi hassu fein editiert braves Gausi bekommst nen schmacko! =P
:)


//edit2:
hat sich =P
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
With Listview1.Items.Add do begin
 Caption:='a';
 subItems.Add('b');
 subitems.add('c');
end;
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: So 30.01.05 21:08 
Hallo,

ich machs nochmal klarer:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
var
  ListItem: TListItem;
begin
  ListItem := LV1.Items.Add;
  ListItem.Caption := '1. Spalte';
  ListItem.SUbItems.Add('2. Spalte');
  ListItem.SubItems.AdD('3. Spalte');
  ListItem.SubItems.Add('usw..');
end;
Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
npx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 30.01.05 23:16 
Jo ich habs verstanden :D
ich danke dir nochma vielmals läuft alles ;D
nun mach ich mich aber auf zum nächsten thread :\