Lazarus

Programming => General => Topic started by: Zath on April 10, 2021, 04:56:24 pm

Title: TMemo remember font settings.
Post by: Zath on April 10, 2021, 04:56:24 pm
TMemo remember font settings.

What's the preferred way to store/remember use selected font settings please ?

My Memo is set to System font by default for the fixed width aspect but many will obviously change it.

Thanks
Title: Re: TMemo remember font settings.
Post by: wp on April 10, 2021, 05:40:31 pm
I usually put all these user settings into an ini file which is written when the application ends and read back when it starts the next time.

In a similar question posted recently I played with the TXMLPropStorage, and this is very handy and you can store the font settings without writing a single line of code:
(Of course you can add other properties to the SessionProperties to be stored by the XMLStorage component.
Title: Re: TMemo remember font settings.
Post by: Zath on April 10, 2021, 06:07:37 pm
Excellent, thanks.
TinyPortal © 2005-2018