Autor Beitrag
NetZwerg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: So 02.05.04 14:36 
Hallo,

ich möchte in einer ListBox ein Item auswählen, also per Script. Ich habes erstmal so versucht:

ausblenden Delphi-Quelltext
1:
2:
3:
for i := 1 to ListBox1.Items.Count do
  begin
    ListBox1.ItemIndex := ListBox1.ItemIndex + 1  end;


tja, geht aber nich!?

cYa, Dave

// Edit: Alles klar, sry!!

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: So 02.05.04 15:15 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
for i:=0 to ListBox1.Items.Count-1 do
    begin
         Application.ProcessMessages;
         ListBox1.ItemIndex := ListBox1.ItemIndex + 1;
    end;


du wirst aber nichts sehen, weil das rasend schnell geht.

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
bms
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 735

Win XP
Delphi 3, Delphi 6 PE, Delphi 2005 PE
BeitragVerfasst: So 02.05.04 15:18 
Was willst du damit wählen

ausblenden Delphi-Quelltext
1:
2:
3:
for i := 1 to ListBox1.Items.Count do
  begin
    ListBox1.ItemIndex := ListBox1.ItemIndex + 1  end;


Oder willst du sie alle selektieren?

_________________
VORSICHT: Ich behersche seit heute die Fünf-Finger-Handflächen-Herz-Explodier-Schlag-Kampf-Technik >:(
NetZwerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: So 02.05.04 15:35 
is schon alles klar, eigentlich kommt da noch n windows.beep(100,100) vor... Ich hab das also jetz so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
for i := 1 to ListBox1.Items.Count do
begin
  windows.beep(100,100);
  ListBox1.Index := ListBox1.Index + 1;
end;


Jetzt rattert er alle Zeilen mit 'nem BEEP durch.

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur