[Gambas-user] dialog.select font & conf setting

Benoît Minisini gambas at ...1...
Wed Sep 8 14:00:10 CEST 2010


> Hallo everyone,
> 
> i am new to gambas and trying some things out.
> I would like to give the user of my program the opportunity to choose a
> font.
> The default title of the dialog.selectFont must been changed
> The font that has been chosen must be written  to the conf-file
> 
> My code is as follows
> 
> PUBLIC SUB mnuFormatFont_Click()
>   ' set the title
>   ' let choose the font
>   ' apply the font
>   ' write chosen font to the conf file
>   Dialog.Title = " Kies een font "
>   Dialog.SelectFont
>   TextArea1.Font = Dialog.Font
>   Settings["Tekst/Lettertype"] = TextArea1.Font
> END
> 
> When running the program
> - the title is not changed

This is a bug I fixed in revision #3198.

> - the data are not written to the conf file

Mmm. Are you sure? The conf file is written when your program exists, or if 
you explicitely call Settings.Save().

Regards,

-- 
Benoît Minisini




More information about the User mailing list