Page 1 of 1

Set menu font and/or size

Posted: Fri Oct 13, 2023 7:17 am
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.

Re: Set menu font and/or size

Posted: Fri Oct 13, 2023 11:02 am
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).

Re: Set menu font and/or size

Posted: Fri Oct 13, 2023 11:05 am
by BarryG
Whaaat? Menu font sizes can't be changed?

Re: Set menu font and/or size

Posted: Fri Oct 13, 2023 12:39 pm
by Rinzwind
Good too. To keep the little consistency Windows apps have (mostly because they use old controls) intact. It is a system setting.

Re: Set menu font and/or size

Posted: Fri Oct 13, 2023 12:48 pm
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

Re: Set menu font and/or size

Posted: Fri Oct 13, 2023 12:56 pm
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.

Re: Set menu font and/or size

Posted: Fri Oct 13, 2023 1:13 pm
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

Re: Set menu font and/or size

Posted: Fri Oct 13, 2023 6:15 pm
by AZJIO
Let him change the font size in system settings.