![]() |
x Quadrat hintereinander
Delphi-Quellcode:
Von phlux!
procedure TForm1.Button1Click(Sender: TObject);
const iGroesse = 50; var i, j, s: integer; Rect: TRect; Point: TPoint; begin for i := 0 to strToInt(XSize.Text) do begin Point.Y := 1; Point.X := (i * iGroesse) + 1; Rect.TopLeft :=Point; Point.y := iGroesse; Point.x := (i * iGroesse) + 1 + iGroesse; Rect.BottomRight:=Point; PaintBox1.Canvas.Rectangle(Rect); // PaintBox1.Canvas.Rectangle(i * iGroesse + 1, 1, (i + iGroesse) * iGroesse, 1 * iGroesse); end; end; Grüsse, Daniel :hi: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:44 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 by Thomas Breitkreuz