![]() |
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:
Auch für XML sollte es genau so funktionieren und jeweils ein 1 Zeiler bleiben
//aus Ini laden
Label1.Font.Style := TFontStyles(Byte(lIni.ReadInteger('Section', 'Ident', 0))); //in Ini speichern lIni.WriteInteger('Section', 'Ident', Byte(Label1.Font.Style)); |
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:42 Uhr. |
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