Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NSFontPanelMBS class

Super class: NSPanelMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa MBS MacCocoa Plugin 9.8 Yes No No Yes, macOS only No
Function: The NSFontPanel class implements the Font panel—a user interface object that displays a list of available fonts, letting the user preview them and change the font used to display text.
Example:
NSFontPanelMBS.sharedFontPanel.Show
Notes:
The actual changes are made through conversion messages sent to the shared NSFontManager instance. There's only one Font panel for each application.
Subclass of the NSPanelMBS class.

Feedback, Comments & Corrections

Mode Constants

Constant Value Description
NSFontPanelAllEffectsModeMask &hFFF00 Display all the effects user interface items.
NSFontPanelAllModesMask &hFFFFFFFF Display all the available adornments.
NSFontPanelCollectionModeMask 4 Display the font collections column.
NSFontPanelDocumentColorEffectModeMask 2048 Display the document color button.
NSFontPanelFaceModeMask 1 Display the typeface column.
NSFontPanelShadowEffectModeMask 4096 Display the shadow effects button.
NSFontPanelSizeModeMask 2 Display the font size column.
NSFontPanelStandardModesMask &hFFFF Display the standard default font panel—that is, including the collections, typeface, and size columns.
NSFontPanelStrikethroughEffectModeMask 512 Display the strike-through popup menu.
NSFontPanelTextColorEffectModeMask 1024 Display the text color button.
NSFontPanelUnderlineEffectModeMask 256 Display the underline popup menu.

Super class NSPanelMBS

Super class NSWindowMBS

Super class NSResponderMBS

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacCocoa Plugin.


NSFontMBS   -   NSGraphicsMBS




Links
MBS Xojo Chart Plugins