How to load a textFont dialog box ? [Solved]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

How to load a textFont dialog box ? [Solved]

Post by atout66 » Mon Apr 25, 2016 8:45 am

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.
Last edited by atout66 on Tue Apr 26, 2016 10:42 am, edited 1 time in total.
Discovering LiveCode Community 6.5.2.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: How to load a textFont dialog box ?

Post by jmburnod » Mon Apr 25, 2016 8:59 am

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
https://alternatic.ch

atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: How to load a textFont dialog box ?

Post by atout66 » Mon Apr 25, 2016 6:40 pm

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 ?
Discovering LiveCode Community 6.5.2.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: How to load a textFont dialog box ?

Post by jmburnod » Mon Apr 25, 2016 9:56 pm

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
https://alternatic.ch

atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: How to load a textFont dialog box ?

Post by atout66 » Tue Apr 26, 2016 10:42 am

Merci Jean-Marc for these advice :wink:
Discovering LiveCode Community 6.5.2.

Post Reply