Autor Beitrag
Hochhäusl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57



BeitragVerfasst: So 18.08.02 19:21 
Hi,

ich habe eine listbox, wie kann ich nun einen markierten eintrag per Knopfdruck "rauf und runter" schieben?


mfg
Hochhäusl
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: So 18.08.02 19:28 
// runter
ausblenden Quelltext
1:
2:
3:
with ListBox1 do
  if ItemIndex < Pred(Items.Count) then
    Items.Exchange(ItemIndex, ItemIndex + 1);

// rauf
ausblenden Quelltext
1:
2:
3:
with ListBox1 do
  if ItemIndex > 0 then
    Items.Exchange(ItemIndex, ItemIndex - 1);



tom