Autor Beitrag
furkal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Mi 30.04.03 20:10 
Hi!!

Ich habe ein Problem mit der Anpassung der Textfarbe in Zusammenhang mit der Hintergrundfarbe im Grid!
Natürlich sollen diese immer im Kontrast zueinander stehen, so dass man die Schrift immer lesen kann.

Gibt es eine Möglichkeit Farbbereiche (z.b. helle, dunkle) anhand der Kodierung von 'tcolor' zu erkennen?
-dann könnte man bei Wahl der hintergrundfarbe die Textfarbe auf einen größtmöglichen kontrast setzten....

Würde mich über jeden tip freuen !!

Schöne Grüße 'Furkal'
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 30.04.03 20:14 
automatisch wird das schwierig. Wer soll wem denn sagen, daß der Kontrast zu gering ist ?

_________________
Gruß
Hansa
furkal Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Mi 30.04.03 21:24 
Die Hintergrundfarbe wird geändert (per Color Dialog) und danach soll die Textfarbe angepasst werden!!

//EDIT: ...d.h. bei ziemlich hellem hintergrund, soll der text dunkel sein und vice versa.

Moderiert von user profile iconUGrohne: Postings verschmolzen :wink:
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mi 30.04.03 21:43 
Bitte nur einmal posten!

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Mi 30.04.03 22:36 
dazu gibt es irgendwo ne funktion die dir die konträre farbe zue inem farbwert liefert... ich such nochmal