Set menu font and/or size

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BarryG
Addict
Addict
Posts: 4136
Joined: Thu Apr 18, 2019 8:17 am

Set menu font and/or size

Post by BarryG »

Can I please suggest an official command to set the menu font and/or size? Thanks.

If anyone has an API way in the meantime, please feel free to shoot me the technique.
User avatar
jacdelad
Addict
Addict
Posts: 1993
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Set menu font and/or size

Post by jacdelad »

On Windows, there's no API or other official way to do this. Even other languages can't do this. I guess you'll have to do this by hand (good ol' canvas).
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
BarryG
Addict
Addict
Posts: 4136
Joined: Thu Apr 18, 2019 8:17 am

Re: Set menu font and/or size

Post by BarryG »

Whaaat? Menu font sizes can't be changed?
Rinzwind
Enthusiast
Enthusiast
Posts: 679
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: Set menu font and/or size

Post by Rinzwind »

Good too. To keep the little consistency Windows apps have (mostly because they use old controls) intact. It is a system setting.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Set menu font and/or size

Post by Fred »

You can use an OWNERDRAW menu if you want to, but it's not that easy. For example: viewtopic.php?p=449320#p449320
BarryG
Addict
Addict
Posts: 4136
Joined: Thu Apr 18, 2019 8:17 am

Re: Set menu font and/or size

Post by BarryG »

Reason for asking was because a user said the standard menus of my app are too small to read on his ultra-big monitor, so I thought the size could be easily changed. Amazed that they can't without owner-drawing, or without changing system-wide settings for it.

Thanks for the link, Fred. It doesn't look like too much work to convert over, as most of the PureBasic menu commands are still used.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Set menu font and/or size

Post by Fred »

but the other apps are showing normal menus ? Because PB uses standard menu, so it should be the same. If you use ImageMenu, try with standard menu to see if it makes any diff
AZJIO
Addict
Addict
Posts: 2143
Joined: Sun May 14, 2017 1:48 am

Re: Set menu font and/or size

Post by AZJIO »

Let him change the font size in system settings.
Post Reply