![]() |
Canvas.Polygon(???)
Hi
Ich bin eine visuelle Komponente am entwickeln, ein Button. Er soll Pfeilförmig sein. Wie Zeichne ich diesen Pfeil, wenn ich nur mit variabeln Werten arbeiten will für die Punktvergabe? also z.B. Canvas.Poligon(width,width/2, ...) Ich hab auch grundätzliche Probleme mit der Zeichenfläche, welches ist die x, welches die y Achse, xmin? xmax? height? width? bitte um hilfe... |
Re: Canvas.Polygon(???)
Zitat:
Zitat:
mfg, Ratte |
Re: Canvas.Polygon(???)
Zitat:
Wochenlang habe ich dran rumstudiert, dabei ist es ganz einfach. Ich habs jetzt selber rausgekriegt und Canvas kenne ich jetzt auch! Geil! Canvas: x horizontale Achse, y vertikale Achse. 0,0 ist unten links height ist ymax width ist xmax So hab ichs gemacht:
Delphi-Quellcode:
Geil was!? :drunken:
Points[1]:=Point(0, height - height div 4);
Points[2]:=Point(0, 0 + height div 4); Points[3]:=Point(width - width div 4, 0 + height div 4); Points[4]:=Point(width - width div 4, 0); Points[5]:=Point(width, height div 2); Points[6]:=Point(width - width div 4, height); Points[7]:=Point(width - width div 4, height - height div 4); |
Re: Canvas.Polygon(???)
in der unit GraphUtil gibt es eine Proc DrawArrow () !
|
Re: Canvas.Polygon(???)
Zitat:
|
Re: Canvas.Polygon(???)
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:25 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