Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Enumerationstyp TFont.Style in XML-Datei speichern (https://www.delphipraxis.net/86434-enumerationstyp-tfont-style-xml-datei-speichern.html)

SirThornberry 14. Feb 2007 18:14

Re: Enumerationstyp TFont.Style in XML-Datei speichern
 
es geht auch bedeutend einfacher. Hier ein Beispiel wie man den FontStyle eines Labels in eine Ini-Datei schreibt und wieder raus liest:
Delphi-Quellcode:
//aus Ini laden
Label1.Font.Style := TFontStyles(Byte(lIni.ReadInteger('Section', 'Ident', 0)));
//in Ini speichern
lIni.WriteInteger('Section', 'Ident', Byte(Label1.Font.Style));
Auch für XML sollte es genau so funktionieren und jeweils ein 1 Zeiler bleiben


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:42 Uhr.
Seite 2 von 2     12   

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