Autor Beitrag
Krefti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Di 02.01.07 18:32 
abend zusammen..

hab ne ganz kurze frage..

wie änder ich die schriftfarbe meines labels in braun? clbrown gibts ja net..

danke..
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Di 02.01.07 18:49 
ausblenden Delphi-Quelltext
1:
Color := $BBGGRR;					

wobei BB ein hexadezimalwert für Blau von 0-FF ist
wobei GG ein hexadezimalwert für Grün von 0-FF ist
wobei RR ein hexadezimalwert für Rot von 0-FF ist

oder

die Suche hier benutzen!

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 02.01.07 20:00 
user profile iconKrefti hat folgendes geschrieben:
abend zusammen..

hab ne ganz kurze frage..

wie änder ich die schriftfarbe meines labels in braun? clbrown gibts ja net..

danke..

Die entsprechende Farbe heißt clMaroon.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Karlson
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 2088



BeitragVerfasst: Do 04.01.07 01:48 
Nee also bei mir ist clmaroon schon immer Bordeaux oder so Weinrot-Rot ;)
Krefti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Do 04.01.07 11:15 
joar..clmaroon is net wirklich braun, habs aber inzwische rausgfunne was es is..danke für eure heilfe..
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 04.01.07 12:44 
user profile iconKrefti hat folgendes geschrieben:
joar..clmaroon is net wirklich braun, habs aber inzwische rausgfunne was es is..danke für eure heilfe..

Tja na was denn?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Krefti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Do 04.01.07 14:02 
also hab mal die kombination rausgfunne..aber ma kanns ja au no bissel annerst mische..


$004080
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 04.01.07 15:14 
Hallo,

... dann noch als Konstate festlegen und man hat clBrown und lesbaren Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
{$R *.DFM}
const clBrown = $004080;

//...
  Label1.Font.Color := clBrown;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )