1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91:
| unit Unit1;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls;
type TForm1 = class(TForm) Button1: TButton; Image1: TImage; procedure Button1Click(Sender: TObject); private public end;
type TRohstoffe = record Uran : boolean; cryptonid : boolean; end;
type TStationierteSchiffe = record FrachterKlein : Integer; FrachterGross : Integer; Kriegsschiffklein : Integer; Kriegsschiffgross : Integer; end;
type TVolk = record Krieger : boolean; Handelsvolk : boolean; Mischvolk : boolean; end;
type TGebaeude = record Kraftwerk : boolean; Werft : boolean; Schutzschild : boolean; Waffensysteme : boolean; Forschungsstation : boolean; Depot : boolean; end;
type TPlanet = class(TGraphicControl) public Bild : TImage; Bezeichnung : String; AnzahlEinwohner : Integer; maxEineohner : Integer; Besitzer : String; Volk : TVolk; Rohstoffe : TRohstoffe; StationierteSchiffe : TStationierteSchiffe; Gebaeude : TGebaeude; neutral : boolean; end;
var Form1: TForm1; planet : Tplanet;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject); begin planet.Bild := TImage.Create(Form1); planet.Bild.Parent := self; planet.Bild.Picture.LoadFromFile('c:\test.bmp'); planet.Bild.SetBounds(10,10,20,20); planet.Bild.Show; end;
end. |