Autor Beitrag
Roy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: So 22.04.07 11:33 
Möchte meine Labelschrift mit eigener Farbe definieren. Wer weiß wie man aus der Farbe (im Angehänten Bild) Html Code #FF9000 einen für Delphi nutbaren cl code definiert?

Danke für eure Antworten!
Einloggen, um Attachments anzusehen!
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: So 22.04.07 11:42 
Hallo,

ausblenden Delphi-Quelltext
1:
const clEntwickler_Ecke = $0090FF;					

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 22.04.07 12:04 

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Roy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: So 22.04.07 20:24 
Vielen Dank, so ging es. Kannst du mir trotzdem noch verraten wie du den Code berechnet hast oder gibbet da ein Tool für?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 22.04.07 20:31 
Siehe im verlinkten Thread, dort ist alles Nötige zu erklärt ;-) Ansonsten: Schau Dir mal Ausgangswert und Ergebnis GENAU an ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Roy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: So 22.04.07 20:52 
ich erkenne das zwei Werte vertauscht wurden. Das FF nach hinten und die 00 nach vorn! Ist das generell so?
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: So 22.04.07 20:59 
#RRGGBB -> $BBGGRR

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
ub60
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 766
Erhaltene Danke: 130



BeitragVerfasst: So 22.04.07 21:00 
Zitat:
ich erkenne das zwei Werte vertauscht wurden. Das FF nach hinten und die 00 nach vorn! Ist das generell so?

JA!

Es würde auch gehen:

ausblenden Delphi-Quelltext
1:
  Farbe:=RGB($FF,$90,$00);					

ub60


Zuletzt bearbeitet von ub60 am So 22.04.07 21:08, insgesamt 1-mal bearbeitet
Roy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 184

Windows7 Ultimate
Delphi 2007, NET, Embarcadero
BeitragVerfasst: So 22.04.07 21:02 
vielen Dank, ich denke mal das hilft vielen weiter!
Thema ist damit abgeschlossen.