1. Dimitris Kelekis
  2. PowerBuilder
  3. Thursday, 10 March 2022 06:37 AM UTC

Hello, I would like to know what font does Powerbuilder use in its traditional menu. I switched to contemporary and the fonts changed. I would like to use the old ones.

John Fauss Accepted Answer Pending Moderation
  1. Thursday, 10 March 2022 14:51 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Dimitris -

If you create a new, temporary menu, it should default to the traditional menu style. Then you can inspect the menu's FaceName property in the Appearance tab in the Properties pane, as illustrated below:

(I captured this screen shot while editing a menu that uses the Contemporary menu style.)

You can then set the FaceName property in the real menu object accordingly.

Regards, John

Comment
  1. John Fauss
  2. Saturday, 12 March 2022 02:33 AM UTC
That link appears to be detailed instructions for what Roland described in his response above... how to substitute one font for another. What I'd like to find is a way to either ask Windows or ferret out from the Registry the name of the Windows system font aka shell font aka default font. OK, yes, it is currently Segoe UI 9-point as Windows is supplied by Microsoft... for now. In earlier versions of Windows (like XP, for example), the system font was MS Sans Serif. There are published steps that tell users how to change the system font. What I was asking about was how to be able to programmatically obtain system font attributes in order to prevent code obsolescence the NEXT time the Windows interface design team decides to purportedly "improve" the look-and-feel of the Windows OS.
  1. Helpful
  1. Roland Smith
  2. Saturday, 12 March 2022 19:26 PM UTC
I checked a couple of metrics functions and none of them return system font. You would have to use RegistryGet to get the override and if blank, assume it is Segoe UI.

The problem I see is you can't change the font at runtime so you can't change it to match. Themes might change that scenario, however I haven't really played around with them.
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.