Forum: Object-Pascal / Delphi-Language
Delphi
by marabu,
7. Dez 2005
Eher so:
with ColorBox do
ShowMessage(Items);
marabu
Forum: Object-Pascal / Delphi-Language
Delphi
by marabu,
7. Dez 2005
Vielleicht indem du den Style deiner ColorBox auf cbPrettyNames einstellst?
marabu
Forum: Object-Pascal / Delphi-Language
Delphi
by marabu,
7. Dez 2005
Hallo Alex,
du speicherst in deiner Tabelle FarbCode und FarbName redundant. Als FarbName würde ich 'Schwarz' und nicht 'clBlack' speichern, da clBlack schon durch FarbCode festgelegt ist:
uses
Graphics; // ColorToString()
var
sFarbe, sColor: string;
c: TColor;