Autor Beitrag
blackbirdXXX

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Mo 21.04.03 11:37 
Folgendes Problem:

Die Variable
ausblenden Quelltext
1:
var landscape: array[1..16] of TImage					


Die Form1.Create Funktion
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
var I: Integer;
begin
 for i := 1 to 16 do
  begin
   landscape[i].Create(Owner);
   landscape[i].Left := 64 * i;
   landscape[i].Top := 64;
   landscape[i].Width := 64;
   landscape[i].Height := 64;
   landscape[i].Picture.LoadFromFile('demo.bmp');
   landscape[i].Name := 'landscape_' + IntToStr(i);
  end;
end;


Das ist der Code. Aber wenn was ich auch versuche es kommt kein sichtbares Bild. Kurz am Anfang (2millisekunden)sehe ich die Rahmen der landscape[i] Bildchen aber dann sind sie weg.

Habe auch schon landscape[i].Refresh;
probiert aber das funzt nicht. Vielleicht kann mir einer helfen

_________________
Klein, schwarz und ärgert Techniker? Jumper!
FloSch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 129



BeitragVerfasst: Mo 21.04.03 11:43 
Hallo,

dir fehlt die Parent Zuweisung.

landscape[i].Parent := DeineForm;

Grüße
Florian :roll:
blackbirdXXX Threadstarter

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: Mo 21.04.03 11:49 
Danke!

_________________
Klein, schwarz und ärgert Techniker? Jumper!