Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Fontfarbe bei Editfeldern (https://www.delphipraxis.net/136937-fontfarbe-bei-editfeldern.html)

Linguini 10. Jul 2009 18:22


Fontfarbe bei Editfeldern
 
Kurze Frage:

Gibt es eine Möglichkeit andere -selber definierte- Farben für ein Editfeld oder Listbox zu verwenden?

Grüße

Wolfgang Mix 10. Jul 2009 18:37

Re: Fontfarbe bei Editfeldern
 
Probiere einmal Edit1.Text:=RGB(127,150,170),
ohne Gewähr.

Linguini 10. Jul 2009 18:41

Re: Fontfarbe bei Editfeldern
 
"[DCC Fehler] ColoredModels.pas(61091): E2010 Inkompatible Typen: 'string' und 'Cardinal'"

Wie könnte ich das umgehen?

Sprint 10. Jul 2009 18:45

Re: Fontfarbe bei Editfeldern
 
Delphi-Quellcode:
Edit1.Font.Color := clWhite;
Delphi-Quellcode:
Edit1.Color := clBlack;

Wolfgang Mix 10. Jul 2009 18:47

Re: Fontfarbe bei Editfeldern
 
Entschuldigung, musste heisse.:

Edit1.Font.Color:=RGB(127,155,200);
Edit1.Text:='Hallo Welt';

Linguini 10. Jul 2009 18:52

Re: Fontfarbe bei Editfeldern
 
@Wolfgang

Danke =)

@Sprint

Das sind die Standartfarben ;)
Die kenn ich...


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:41 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz