Page 1 of 1
Dialog - support for different fonts and/or UpdateDialog
Posted: Mon Nov 04, 2013 10:59 pm
by Andre
Re: Dialog - support for different fonts and/or UpdateDialog
Posted: Mon Nov 04, 2013 11:53 pm
by davido
+1
Thanks Andre.
Re: Dialog - support for different fonts and/or UpdateDialog
Posted: Tue Nov 29, 2022 2:19 am
by jacdelad
I recently started playing a bit with the Dialog-library and stumbled across the question, whether custom fonts can be easily used with it or not. Simply adding a
Code: Select all
SetGadgetFont(#PB_Default,FontID(LoadFont(#PB_Any,"Times New Roman",16)))
into the program before any dialog is created had the desired effect and so far I couldn't find bugs.
Now I took a deeper look into the helpfile, but I couldn't find information about this, neither the section "Dialog" nor the part about "SetGagdetFont" mentions that this is working.
In conclusion I think this wish has been fullfilled and this thread can be marked as "closed", but the helpfile should get some extra lines explaining how setting the font in a dialog works without having to set all gadgets manually.