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



BeitragVerfasst: Di 14.02.06 11:40 
ich habe eine listbox bei der die Eigenschaft Multiselect auf true steht. ich kann mehrere Werte oder nur einen Wert markieren. wie kann ich aber keinen Wert markieren. Also den markierten Wert wieder entmarkieren?

Vielen Dank im Voraus
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Di 14.02.06 11:47 
z.Bsp in OnkeyDown Event mit der ESC-Taste

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.ListBox1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if Key = vk_ESCAPE then ListBox1.Selected[ListBox1.ItemIndex] := False;
end;

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
kuba Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Di 14.02.06 11:53 
Vielen Dank! Es hat funktioniert.