Page 1 of 1

How to load a textFont dialog box ? [Solved]

Posted: Mon Apr 25, 2016 8:45 am
by atout66
Hi to all,

Sorry if this has already been asked but I didn't find the topic with the keyword <textFont>...

The question is simple; how can I load a dialog box which let the user select the textFont from the system he wants ?
I mean on a desktop application, no mobile.

I've seen the entry of <revFontLoad fontFile> from the dictionary, but no idea how I can get the <fontFile> path from the user system...

Thanks in advance, Jean-Paul.

Re: How to load a textFont dialog box ?

Posted: Mon Apr 25, 2016 8:59 am
by jmburnod
Bonjour Jean-Paul,
but no idea how I can get the <fontFile> path from the user system...
You can use FontNames() function to get the list of available fonts

You also can create your own dialog box. A substack or a group
Best regards
Jean-Marc

Re: How to load a textFont dialog box ?

Posted: Mon Apr 25, 2016 6:40 pm
by atout66
Ah OK Jean-Marc, thanks, I knew about FontNames() but I thought there was a build in function in LC which would do a part of the work for me :wink:
So, if I understand your meaning, I've to build myself all the process dialog box, with a combo box I guess, right ?

Re: How to load a textFont dialog box ?

Posted: Mon Apr 25, 2016 9:56 pm
by jmburnod
if I understand your meaning, I've to build myself all the process dialog box,
Yes, I think that is the best way
with a combo box I guess, right ?
Yes, or option menu
Jean-Marc

Re: How to load a textFont dialog box ?

Posted: Tue Apr 26, 2016 10:42 am
by atout66
Merci Jean-Marc for these advice :wink: