AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Kann kein fertiges Projekt mit Delphi 2010 Starten HILFE =)
Thema durchsuchen
Ansicht
Themen-Optionen

Kann kein fertiges Projekt mit Delphi 2010 Starten HILFE =)

Ein Thema von Mcflash · begonnen am 14. Jan 2010 · letzter Beitrag vom 14. Jan 2010
Antwort Antwort
Mcflash

Registriert seit: 14. Jan 2010
10 Beiträge
 
#1

Re: Kann kein fertiges Projekt mit Delphi 2010 Starten HILFE

  Alt 14. Jan 2010, 19:38
Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Shape1: TShape;
    Panel1: TPanel;
    procedure Button2Click(Sender: TObject);
    procedure FormActivate(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
    shape_array : array [1..18] of TShape
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
shape_array [1].Free;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
shape_array [11] := Tshape.Create(Panel1);
with shape_array [11] do
begin
  parent := Panel1;
  left := 1;
  top := 1;
  Height := 30;
  width := 30;
  shape := stCircle;
  brush.Color := clWhite;
end;
end;

procedure TForm1.FormActivate(Sender: TObject);
var i : integer;
begin
for i := 1 to 10 do
begin
  shape_array [i] := TShape.Create(self);
  with shape_array [i] do
  begin
  parent := self;
  left := 10*i;
  top := 10;
  Height := 10;
  width := 10;
  shape := stCircle;
  brush.Color := clWhite;
  end;
end;


end;

end.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:23 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz