SUB form_open() form.font =module.fonctionnom form.fontsize =module.fonctiontailleEND
PUBLIC SUB Form_Open() DIM ob AS OBJECT FOR EACH ob IN ME.Controls ob.Font = Font["symbol,20"] ob.Text = "Abcde" NEXTEND
CREATE STATICEXPORTPUBLIC SUB _new() ME.Font = Font["Purisa,11"] END
' Gambas class fileCREATE STATICEXPORTPUBLIC SUB _new() DIM obs AS Observer obs = NEW Observer(ME) AS "Fto" ME.Font = Font["Purisa,11"] ENDPUBLIC SUB fto_Font() DIM win AS Window DIM obj AS OBJECT FOR EACH win IN Windows Object.Lock(win) win.font = Font["Serif"] FOR EACH obj IN win.Children TRY obj.font = Font["Serif"] NEXT Object.Unlock(win) NEXTEND
manouvellefont = fontchooser.valueME.Font = Font[manouvellefont]