Registriert seit: 1. Dez 2005
34 Beiträge
|
Re: Galgenmännchen
2. Dez 2005, 16:08
Delphi-Quellcode:
procedure TForm1.PBP1OnPaint(Sender: TObject);
begin
if
(lblFehler1.Caption = '0')
then
begin
with PBP1.canvas do
begin
x.x := 5;
x.y := 65;
y.x := 65;
y.y := x.y;
moveto(x.x, x.y);
lineto(y.x, y.y);
end;
end;
if
(lblFehler1.Caption = '1')
then
begin
with PBP1.canvas do
begin
x.x := 5;
x.y := 65;
y.x := 65;
y.y := x.y;
xx1.x := 20;
xx1.y := x.y;
xx2.x := 20;
xx2.y := 10;
moveto(x.x, x.y);
lineto(y.x, y.y);
moveto(xx1.x, xx1.y);
lineto(xx2.x, xx2.y);
end;
end;
end;
was muss ich machen?
|
|
Zitat
|