Hi Piet,
You can not store objects as-is in the registry or ini-files, you
have to write and read all needed properties yourself.
However, you can make everything a bit easier by writing a separate
function/procedure that does the job by entering the Font as a
parameter.
For instance something like:
Procedure WriteFont(AReg : TRegistry; // The current registry object
AFont : TFont; // The font to store
AName : String); // A registry-name for the font
If you need help writing such a procedure out, just ask and I'll
write you one.
Greetz,
Peter.
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Piet Henning
> Sent: Monday, September 12, 2005 9:42 PM
> To: Delphi-en
> Subject: [delphi-en] how? setting a font value in the registry
>
>
> Dear delphi users,
> How can I write a font to the registry without writing all
> it properties one by one?:
> In the property editor the font is listed: {Arial,20,clYellow}
> This does not work:
> SettingsReg.WriteString('topFont1',SettingsForm.FontDialog1.font);
> Thanks
> Piet
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~->
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/