Dialog - support for different fonts and/or UpdateDialog
- Andre
- PureBasic Team
- Posts: 2137
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Dialog - support for different fonts and/or UpdateDialog
...topic says it, more about this can be found here: http://www.purebasic.fr/english/viewtop ... 40&t=57083
Re: Dialog - support for different fonts and/or UpdateDialog
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
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.
Code: Select all
SetGadgetFont(#PB_Default,FontID(LoadFont(#PB_Any,"Times New Roman",16)))
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.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD