Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 11.04.06 16:53 
Hallo,

ich erstelle zur Laufzeit Edits mithilfe eines dynamischen Arrays. Nur flackert dabei alles. Was kann man dagegen tun? Kann man irgendwue verhindern, dass die Edits zuerst alle erzeugt werden und dann angezeigt, bzw. dass nicht sofort neu gezeichnet wird?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
fidionael
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 232

Win XP SP2, Ubuntu 6.06
Delphi 7 PE, Delphi 3 Prof
BeitragVerfasst: Di 11.04.06 17:06 
Hallo,

das ist ein bisschen zu wenig Information, als das ich dir helfen könnte - hast du vielleicht ein wenig Quelltext über? :)
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 11.04.06 17:12 
EditsArray ist ein zweidimensionales Array of Tedit (EditsArray : array of array of TEdit)

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
EditsArray[i][i2]:=TEdit.Create(form1);
  with EditsArray[i][i2] do
        begin
      
            parent:=form1;
            case i2 of
            0: left:=20;
            1: left:=120;
            2: left:=220;
            3: left:=340;
            4: left:=440;
            5: left:=560;
            end;      
            top:=form1.tabsheet1.top+100+i*50;
            width:=90;

     end;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 11.04.06 17:39 
Ich hab den Fehler gefunden:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
EditsArray[i][i2]:=TEdit.Create(form1);
with EditsArray[i][i2] do
begin
 case i2 of
 0: left:=20;
 1: left:=120;
 2: left:=220;
 3: left:=340;
 4: left:=440;
 5: left:=560;
 end;
 top:=form1.tabsheet1.top+100+i*50;
 width:=90;
 parent:=form1;
end;

Die markierte Zeile muss ans Ende. Dann flackert es nicht mehr :zustimm:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot