Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi TColorDialog >>> automatische Aktuallisierung (https://www.delphipraxis.net/71445-tcolordialog-automatische-aktuallisierung.html)

xZise 15. Jun 2006 11:49


TColorDialog >>> automatische Aktuallisierung
 
Ich habe ein Image, welches mit einer Farbe gefüllt wird (aus einem ColorDialog)!
Nun möchte ich, dass, sobald sich die ColorDialogfarbe ändert, dass sich auch die farbe des Images ändert.

SirThornberry 15. Jun 2006 12:05

Re: TColorDialog >>> automatische Aktuallisierung
 
automatisch geht das nicht, du musst schon etwas quelltext tippen:
Delphi-Quellcode:
if ColorDialog.Execute then
  //Fill Image with ColorDialog1.Color
wo genau kommst du nicht weiter?

xZise 15. Jun 2006 13:49

Re: TColorDialog >>> automatische Aktuallisierung
 
Sorry ;) Ich glaube ich habe mich falsch ausgedrückt ^^

Delphi-Quellcode:
if CD.Exectute then
{...}
Er führt {...} nur, nach dem "Abrechen aus, aber ich dachte an die Möglichkeit:
  • FArbdialog öffnet sich
  • Farbe wird geändert
  • Farbe im Image ändert sich
  • Dialog wird geschlossen

Aenogym 15. Jun 2006 15:09

Re: TColorDialog >>> automatische Aktuallisierung
 
ich wüsste nicht, dass der ColorDialog das kann. bastel dir doch ein extra form, in dem man die farben auswählen kann. dann kannst du auch eine automatische aktualisierung basteln :)

aeno


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:44 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