![]() |
AW: Drehung um 90 Grad
geht alles nicht..........:kotz:
|
AW: Drehung um 90 Grad
Zitat:
Ich aber vorhin etwas herumprokrastiniert:
Delphi-Quellcode:
Einfach die gewünschte Höhe und Breite von dem Bargraph einstellen, dann wird das automatisch gezeichnet. Müsste natürlich noch aufgeräumt werden. Fabstand verändert die Länge des Balkens in der Mitte.
procedure THixBarGraph.Paint;
var R: TRect; H, W: Integer; lAbstand: integer; begin inherited paint; if (Parent = NIL) or not visible then Exit; Canvas.Brush.Color := clRed; Canvas.FillRect(Rect(0, 0, Width, Height)); if Width < height then begin lAbstand := min(height div 2, FAbstand); H := (Height) div 2; W := (Width div 4) div 2; R := Rect((Width div 2) - W, lAbstand, (Width div 2) + W, Height - lAbstand); Frame3D(Canvas, R, clBtnShadow ,clBtnHighlight , 1); end else begin lAbstand := min(Width div 2, FAbstand); H := (Width div 2); W := (Height div 4) div 2; R := Rect(lAbstand, (Height div 2) - W, Width - lAbstand, (Height div 2) + W); Frame3D(Canvas, R, clBtnShadow ,clBtnHighlight , 1); end; end; |
AW: Drehung um 90 Grad
Hey,
danke Dir, hab das mal alles angepasst und jetzt macht er auch, das was ich wollte ! :thumb: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:08 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