Autor Beitrag
rafi@work
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 147

Win2000 Prof
D7 Enterprise
BeitragVerfasst: Fr 17.10.03 15:28 
Hallo!

ich möchte einen Eintrag einer ListView auswählen können, und dann mit der 'Delete' Taste den Eintrag löschen. Für das Löschen der Einträge habe ich bereits eine Prozedur.

gruss
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 17.10.03 15:36 
listview:keyup
ausblenden Delphi-Quelltext
1:
2:
  if key=vk_delete then
   if listview1.Selected<>NIL then listview1.Selected.Delete;

oder listview1.deleteselected (sollte es ab D6 geben)

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
rafi@work Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 147

Win2000 Prof
D7 Enterprise
BeitragVerfasst: Fr 17.10.03 15:58 
hat funktioniert danke :), komisch nur, das es 'OnKeyPress' nicht funktioniert...

gruss
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 17.10.03 16:05 
steht in der hilfe, nicht alle Tasten lösen ein keypress aus.

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
rafi@work Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 147

Win2000 Prof
D7 Enterprise
BeitragVerfasst: Fr 17.10.03 16:09 
hmm nach welchen stichworten hast du gesucht?? hab nichts in der hilfe gefunden.

gruss
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 17.10.03 16:24 
die hilfe geht auch im Objektinsektor. im oi onkeypress anklicken und f1 drücken oder Twincontrol.onkeypress in der hilfe eingeben

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
rafi@work Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 147

Win2000 Prof
D7 Enterprise
BeitragVerfasst: Mo 20.10.03 08:30 
hauptsache es hat geklappt, Super!!! Merci