<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>2 Dec 2015 09:21:00 Z</lastBuildDate><pubDate>1 Dec 2015 16:56:00 Z</pubDate><description>Would like to offer the user the ability to select his/her own font rather than the default. If it was a one time only event, easily done by using FontSelect():&#13;
&#13;
gvDefaultFont is Font = FontCreate("Tahoma",10,iItalic) (global variable in project init)&#13;
&#13;
UserFont is Font&#13;
Res = FontSelect(UserFont,True,DefaultFont)&#13;
IF Res THEN&#13;
BtnAdd..Font = UserFont&#13;
ELSE&#13;
BtnAdd..Font = gvDefaultFont&#13;
END&#13;
&#13;
I would like to store the UserFont in a database field so we can reuse it... like this:&#13;
&#13;
IF FileName.UserFont THEN&#13;
BtnAdd..Font = FileName.UserFont&#13;
ELSE&#13;
BtnAdd..Font = gvDefaultFont&#13;
END&#13;
&#13;
Does anybody know what type of field to use (string, int, buffer... ?) and how to get the UserFont into that field?&#13;
&#13;
Thanks, Art</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable/read.awp</link><title>Where to put a Font variable</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55243/read.awp</comments><pubDate>2 Dec 2015 09:21:00 Z</pubDate><description>Hi Art,&#13;
&#13;
I guess you can store it in a memo field by using serialisation/deserialisation.&#13;
I haven't tested if it works on int…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55243/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55243/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable/read.awp">Where to put a Font variable</source><title>Re: Where to put a Font variable</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55232/read.awp</comments><pubDate>2 Dec 2015 05:25:00 Z</pubDate><description>Paulo, that was it! I was trying to take the easy way out and store the more complicated FONT variable, which did not work. Than…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55232/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55232/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable/read.awp">Where to put a Font variable</source><title>Re: Where to put a Font variable</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55229/read.awp</comments><pubDate>1 Dec 2015 17:13:00 Z</pubDate><description>you can store the individual properties of the font variable in your file:&#13;
FileName.UserFont_name=UserFont..name&#13;
FileName.User…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55229/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable-55229/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/55221-where-put-font-variable/read.awp">Where to put a Font variable</source><title>Re: Where to put a Font variable</title></item></channel></rss>
