Dialog - support for different fonts and/or UpdateDialog
- Andre
- PureBasic Team
- Posts: 2071
- 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.
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB