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 Farbwerte speichern (https://www.delphipraxis.net/113198-farbwerte-speichern.html)

Andidreas 4. Mai 2008 13:30


Farbwerte speichern
 
aloha,


wie kann ich mir die font farbe die z.b. mein listbox hat in einer .ini datei speichern???

kann ich mir denn wert denn ich bei "lstbox.font.color" setze als string weg speichern?

bzw. kann ich wenn ich einem tcolordialog eine andere farbe auswähle, diese irgendwie als string zum speichern bekommen?

Muetze1 4. Mai 2008 13:38

Re: Farbwerte speichern
 
kurz und knapp: Delphi-Referenz durchsuchenIdentToColor(), Delphi-Referenz durchsuchenColorToIdent()

Alternativ: Delphi-Referenz durchsuchenStringToColor(), Delphi-Referenz durchsuchenColorToString()

Andidreas 4. Mai 2008 13:48

Re: Farbwerte speichern
 
lol und ich hab die ganze zeit nach strtocolor gesucht :roll:


danke für die hilfe!!!

toms 4. Mai 2008 13:51

Re: Farbwerte speichern
 
Zitat:

Zitat von Andidreas
lol und ich hab die ganze zeit nach strtocolor gesucht :roll:

Wo hast du denn gesucht? So hättest du auch eine Antwort erhalten:
Bei Google suchenStrToColor Delphi

Andidreas 4. Mai 2008 14:08

Re: Farbwerte speichern
 
Zitat:

Zitat von toms
Zitat:

Zitat von Andidreas
lol und ich hab die ganze zeit nach strtocolor gesucht :roll:

Wo hast du denn gesucht? So hättest du auch eine Antwort erhalten:
Bei Google suchenStrToColor Delphi

in der borland hilfe...


kann ich mir eigentlich so wie ich mir die farbe als string wert ausgeben lasse, die werte der schrift (name, größe, style) als text ausgeben lassen? aus dem fontdialog heraus?

toms 4. Mai 2008 14:38

Re: Farbwerte speichern
 
Zitat:

Zitat von Andidreas
kann ich mir eigentlich so wie ich mir die farbe als string wert ausgeben lasse, die werte der schrift (name, größe, style) als text ausgeben lassen? aus dem fontdialog heraus?

Das ist schon möglich. Hier findest du 2 Möglichkeiten:

How can I save/load the information about font in INI/text-file?


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:15 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