Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsFontDialogMBS class.

WindowsFontDialogMBS.Bold as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The bold value.

(Read and Write property)

WindowsFontDialogMBS.CurrentFont as WindowsFontFamilyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Returns current font.

You may need to call Query to get current state from dialog.
This returns a copy, so changes to the font object are not going back.
(Read only property)

WindowsFontDialogMBS.DialogHandle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Internal window handle for dialog.

(Read and Write property)

WindowsFontDialogMBS.Effects as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to show text effect controls.

Causes the dialog box to display the controls that allow the user to specify strikeout, underline, and text color options. If this flag is set, you can use the textColor member to specify the initial text color. You can use the StrikeThrough and Underline members to specify the initial settings of the strikeout and underline check boxes. ChooseFont can use these members to return the user's selections.
(Read and Write property)

Some examples using this property:

WindowsFontDialogMBS.FontName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The font name of current font.

(Read and Write property)

WindowsFontDialogMBS.FontType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The type of the selected font when ChooseFont returns.

This member can be one or more of the following values:
FontTypeBold, FontTypeItalic, FontTypePrinter, FontTypeRegular, FontTypeScreen and FontTypeSimulator.
(Read and Write property)

WindowsFontDialogMBS.ForceFontExist as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to only allow existing fonts.

ChooseFont should indicate an error condition if the user attempts to select a font or style that is not listed in the dialog box.
(Read and Write property)

WindowsFontDialogMBS.Height as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The height, in logical units, of the font's character cell or character.

The character height value (also known as the em height) is the character cell height value minus the internal-leading value. The font mapper interprets the value specified in lfHeight in the following manner.

ValueMeaning
> 0The font mapper transforms this value into device units and matches it against the cell height of the available fonts.
0The font mapper uses a default height value when it searches for a match.
< 0The font mapper transforms this value into device units and matches its absolute value against the character height of the available fonts.

For all height comparisons, the font mapper looks for the largest font that does not exceed the requested size.
This mapping occurs when the font is used for the first time.
(Read and Write property)

WindowsFontDialogMBS.Italic as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether font is italic.

(Read and Write property)

WindowsFontDialogMBS.LastError as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The last error code.

(Read and Write property)

WindowsFontDialogMBS.LimitSize as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to limit font sizes.

ChooseFont should select only font sizes within the range specified by the MinSize and MaxSize members.
(Read and Write property)

WindowsFontDialogMBS.MaxSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The maximum allowed font size.

Setting this also sets LimitSize to true.
(Read and Write property)

WindowsFontDialogMBS.MinSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The minimum allowed font size.

Setting this also sets LimitSize to true.
(Read and Write property)

WindowsFontDialogMBS.NoFontSimulations as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether ChooseFont should not display or allow selection of font simulations.

(Read and Write property)

WindowsFontDialogMBS.NoInitialFaceSelection as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to show initial font selection.

When initializing the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the font name combo box. This is useful when there is no single font name that applies to the text selection.
(Read and Write property)

WindowsFontDialogMBS.NoInitialSizeSelection as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to show initialize size.

When initializing the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the Font Size combo box. This is useful when there is no single font size that applies to the text selection.
(Read and Write property)

WindowsFontDialogMBS.NoInitialStyleSelection as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to show initial style options.

When initializing the dialog box controls, use this flag to prevent the dialog box from displaying an initial selection for the Font Style combo box. This is useful when there is no single font style that applies to the text selection.
(Read and Write property)

WindowsFontDialogMBS.NoVectorFonts as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether ChooseFont should not allow vector font selections.

(Read and Write property)

WindowsFontDialogMBS.NoVerticalFonts as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether the Font dialog box lists only horizontally oriented fonts.

(Read and Write property)

WindowsFontDialogMBS.OnlyFixedPitchFonts as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether ChooseFont should enumerate and allow selection of only fixed-pitch fonts.

(Read and Write property)

WindowsFontDialogMBS.OnlyTrueTypeFonts as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether ChooseFont should only enumerate and allow the selection of TrueType fonts.

(Read and Write property)

WindowsFontDialogMBS.Parent as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The parent window.

The window that owns the dialog box. This member can be any valid window, or it can be nil if the dialog box has no owner.
Can reference a Window or DesktopWindow object.
(Read and Write property)

WindowsFontDialogMBS.ScalableFontsOnly as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to only allow scalable fonts.

Specifies that ChooseFont should allow only the selection of scalable fonts. Scalable fonts include vector fonts, scalable printer fonts, TrueType fonts, and fonts scaled by other technologies.
(Read and Write property)

WindowsFontDialogMBS.ShowApply as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to show Apply button.

Causes the dialog box to display the Apply button.
Clicking Apply button does trigger Apply event.
(Read and Write property)

Some examples using this property:

WindowsFontDialogMBS.ShowInactiveFonts as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether to display hidden fonts.

ChooseFont can additionally display fonts that are set to Hide in Fonts Control Panel.
(Read and Write property)

WindowsFontDialogMBS.Size as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The size of the font.

(Read and Write property)

WindowsFontDialogMBS.Strikethrough as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether font is stroke through.

(Read and Write property)

Some examples using this property:

WindowsFontDialogMBS.TextColor as Color

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The text color for the font.

Only used if Effects is true.
(Read and Write property)

WindowsFontDialogMBS.Underline as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Whether font is underlined.

(Read and Write property)

WindowsFontDialogMBS.Weight as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Fonts MBS Win Plugin 17.3 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The weight of the font in the range 0 through 1000.

For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.

The following values are defined for convenience.

ValueWeight
FW_DONTCARE0
FW_THIN100
FW_EXTRALIGHT200
FW_ULTRALIGHT200
FW_LIGHT300
FW_NORMAL400
FW_REGULAR400
FW_MEDIUM500
FW_SEMIBOLD600
FW_DEMIBOLD600
FW_BOLD700
FW_EXTRABOLD800
FW_ULTRABOLD800
FW_HEAVY900
FW_BLACK900
(Read and Write property)

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...