Dialog - support for different fonts and/or UpdateDialog

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Dialog - support for different fonts and/or UpdateDialog

Post by Andre »

...topic says it, more about this can be found here: http://www.purebasic.fr/english/viewtop ... 40&t=57083
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Dialog - support for different fonts and/or UpdateDialog

Post by davido »

+1

Thanks Andre.
DE AA EB
User avatar
jacdelad
Addict
Addict
Posts: 1431
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: Dialog - support for different fonts and/or UpdateDialog

Post 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.
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
Post Reply