pbUseWindowsFont - cApplication

Determines whether the application uses Windows system fonts

Type: Property

Access: Read/Write

Data Type: Boolean

Parameters: None

 Property Boolean pbUseWindowsFont

Read Access: Get pbUseWindowsFont to BooleanVariable
Write Access: Set pbUseWindowsFont to BooleanVariable/Value


Determines whether the application uses Windows system fonts as its global font. The global font is the font that is applied to all DataFlex windows objects as the default. Note that this property has no effect on COM/ActiveX objects, which usually use the Windows system font as the default.

The False setting of this property is a legacy mode setting. When false, your application will use MS Sans Serif with a Physical_FontSize of 12 as its global font.

Read Understanding Fonts in DataFlex for a more information.

Default is True.


If you us skinning (see cCJSkinFramework), Codejock provides an interface for disabling the applying of font metrics (see ComApplyOptions). When this is disabled, the skin framework will not change the size of fonts. When pbUseWindowsFont is True, the skin framework automatically disables this, allowing Windows to handle the DPI settings. This means that different skins of normal, large, extra-large will now all appear the same size.