AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Delphi mini paint->rechtecke zeichnen
Thema durchsuchen
Ansicht
Themen-Optionen

mini paint->rechtecke zeichnen

Ein Thema von Say1k · begonnen am 15. Mai 2009 · letzter Beitrag vom 22. Mai 2009
Antwort Antwort
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.757 Beiträge
 
Delphi 10.4 Sydney
 
#1

Re: mini paint->rechtecke zeichnen

  Alt 15. Mai 2009, 18:23
Guten Abend,

eine Schönheitskorrektur:
Delphi-Quellcode:
procedure TForm1.Edit1Change(Sender: TObject);
begin
  gros := 1;
  if StrToInt(edit1.Text) < 10 then
    begin
      form1.font.color := clblack;
      label8.hide;
      gros := StrToInt(edit1.text);
    end
  else
    begin
      form1.font.color := clred;
      Label8.show;
      Label8.caption := 'Fehler!';
    end;
end;
Wie benutze ich rectangle:
Zitat von DelphiHilfe:
Draws a rectangle on the canvas.

procedure Rectangle(X1, Y1, X2, Y2: Integer); overload;
procedure Rectangle(const Rect: TRect); overload;

Description

Use Rectangle to draw a rectangle using Pen and fill it with Brush. Specify the rectangle’s coordinates in one of two ways:

Giving four coordinates that define the upper left corner at the point (X1, Y1) and the lower right corner at the point (X2, Y2).
Using a TRect type.

To fill a rectangular region without drawing the boundary in the current pen, use FillRect. To outline a rectangular region without filling it, use FrameRect or Polygon. To draw a rectangle with rounded corners, use RoundRect.
Grüße
Klaus
Klaus
  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 21:07 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz