Autor Beitrag
sklorzy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 12.04.04 11:03 
Hi,
gibt es eine Möglichkeit ein bestimmes Combobox-Item auszuschalten, dass heist nicht mehr auswählbar zu machen??
BSP:
combobox1.itemindex[1] enabled :=false

Kann mir irgendjemand dazu den Quelltext geben??
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mo 12.04.04 11:12 
Hi,

Probier's mal so:

1.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.ListBox1MouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  if ListBox1.ItemIndex = 2 then
    ListBox1.Selected[ListBox1.ItemIndex] := False;
end;


Musst noch den Fall behandeln, wenn mit den Cursortasten navigiert wird.

2.
Sonst mit OwnerDraw probieren.
sklorzy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mo 12.04.04 13:41 
Titel: Danke
Danke :)