Autor Beitrag
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Do 27.11.03 15:42 
Hi,
wie kann ich den Titel des selektierten Eintrags der ListBox herausfinden?

Hab in der Delphi Hilfe und in der Board-Suche nix gefunden.

Kann mir jemand helfen?

Greetz
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Do 27.11.03 15:49 
Hi,

kann ich mir kaum vorstellen. Ein bischen mit den Eigenschaften spielen hätte dir auch geholfen:

ausblenden Delphi-Quelltext
1:
ListView1.Selected.Caption;					


MFG

- Ernesto -
Andreas L. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Do 27.11.03 15:55 
Ich rede von ListBox nicht von ListView.
In der ListBox geht das nämlich nicht sonst wäre ich schon lange drauf gekommen.
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: Do 27.11.03 15:57 
so:

ausblenden Delphi-Quelltext
1:
2:
if listbox.itemindex >= 0 then 
 blubb := listbox.items[listbox.itemindex];
Andreas L. Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Do 27.11.03 15:59 
Danke, das geht :-)
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Do 27.11.03 16:08 
Hi,

sorry, hab ich übersehen. Aber auch für die Listbox gilt das gleiche:

ein bisschen mit den Eigenschaften spielen hätte dir geholfen. Zudem steht das bestimmt ein paar mal hier im Forum.

MFG

- Ernesto -