Autor Beitrag
tea pot
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Do 22.03.07 21:20 
Hi!

Ich hab mal wieder ne Frage^^ :P :?:

Kann man irgendwie neue Hintergrundfarben für ein Formular erstellen?


MfG

tea pot


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Do 22.03.2007 um 21:21
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Do 22.03.07 21:23 
ausblenden Delphi-Quelltext
1:
Form1.Color := clred;					
tea pot Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Do 22.03.07 21:33 
nee das meine ich nicht.
Ich will nicht die Farben aus der Liste sondern eigene.
Der Befehl für die Hintergrundfarbe ist mir bekannt,nur bei den Farben ist nix passendes dabei!
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Do 22.03.07 21:36 
Hallo,

dann probier mal das hier:

ausblenden Delphi-Quelltext
1:
2:
 Form1.Color := RGB(r, g, b); // r, g, b = 0..255
 Form1.Color := RGB(25500); // rot


Gruß
tea pot Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Do 22.03.07 21:37 
funzt das auch mit Delphi 5?
Saubäär
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 376



BeitragVerfasst: Do 22.03.07 21:38 
Das kann ich dir nicht sagen. Magst es nicht selber ausprobieren?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 22.03.07 21:46 
Hallo!

Du kannst die Farben auch in Hex-Schreibweise angeben:

ausblenden Delphi-Quelltext
1:
Form1.Color := $45FFAC;					


Dabei sind die ersten zwei Zeichen der Wert für Blau, die zweiten Zwei für Grün und die letzten beiden für Rot.

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 22.03.07 21:58 
Mit dem Programm COLORPIC.EXE kann man Farbmischungen kreieren und mit dem Copy-Button in Delphi übernehmen.

www.iconico.com/colorpic/