MikeH Well-Known Member Licensed User Longtime User Jun 1, 2023 #1 Is it possible to find the size of the system font? When using a menu bar, if the font size is not the same as the system font size, there is a "jump" as reported here Thanks in advance
Is it possible to find the size of the system font? When using a menu bar, if the font size is not the same as the system font size, there is a "jump" as reported here Thanks in advance
William Lancee Well-Known Member Licensed User Longtime User Jun 1, 2023 #2 The following yields 12. And indeed if you make that the font size of the MenuBar (in designer), there is no jumping. However, the font is quite small. B4X: Dim lbl As Label lbl.Initialize("") Dim lblx As B4XView = lbl Log(lblx.TextSize) Upvote 0
The following yields 12. And indeed if you make that the font size of the MenuBar (in designer), there is no jumping. However, the font is quite small. B4X: Dim lbl As Label lbl.Initialize("") Dim lblx As B4XView = lbl Log(lblx.TextSize)
MikeH Well-Known Member Licensed User Longtime User Jun 2, 2023 #3 Thanks William, I'm trying to change the menu text size in code. I'd like to set it according to the system font size to avoid that "jump" Upvote 0
Thanks William, I'm trying to change the menu text size in code. I'd like to set it according to the system font size to avoid that "jump"
William Lancee Well-Known Member Licensed User Longtime User Jun 3, 2023 #4 You can certainly change it to 12. I did some searches about changing it from 12. This is difficult. https://stackoverflow.com/questions/38383694/update-jmenu-and-jmenu-font-after-jmenubar-is-visible Upvote 0
You can certainly change it to 12. I did some searches about changing it from 12. This is difficult. https://stackoverflow.com/questions/38383694/update-jmenu-and-jmenu-font-after-jmenubar-is-visible