Hey Daniel, Try Dialog.SelectFont()
Gambas might be thinking that Dialog.SelectFont is a property so try it with a pair of parenthesis at the end Hope this helps Regards Dimitris On Tue, Sep 7, 2010 at 12:21 AM, Daniel Vanhee <daniel.van...@gmail.com>wrote: > 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 > - the data are not written to the conf file > > What is wrong? > > Daniel. > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user