Platforms to show: All Mac Windows Linux Cross-Platform
NSFontPanelMBS class
Super class: NSPanelMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacCocoa Plugin | 9.8 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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.
- 3 events
- event changeAttributes
- event changeFont
- event validModesForFontPanel as Integer
- 2 properties
- property accessoryView as NSViewMBS
- property Enabled as boolean
- 6 methods
- method Constructor
- method Destructor
- method panelConvertFont(font as NSFontMBS) as NSFontMBS
- method reloadDefaultFontFamilies
- method setPanelFont(font as NSFontMBS, isMultiple as boolean)
- method worksWhenModal as boolean
- 4 shared methods
- shared method convertAttributes(old as dictionary) as dictionary
- shared method convertFont(oldFont as NSFontMBS) as NSFontMBS
- shared method sharedFontPanel as NSFontPanelMBS
- shared method sharedFontPanelExists as boolean
- 11 constants
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
- 3 properties
- property becomesKeyOnlyIfNeeded as boolean
- property isFloatingPanel as boolean
- property worksWhenModal as boolean
- method Constructor(x as Double, y as Double, w as Double, h as Double, styleMask as Integer, BackingStoreType as Integer, deferCreation as boolean)
- 12 shared methods
- shared method RunAlertPanel(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string) as Integer
- shared method RunAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as DesktopWindow) as integer
- shared method RunAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as NSWindowMBS) as Integer
- shared method RunAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as window) as Integer
- shared method RunCriticalAlertPanel(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string) as Integer
- shared method RunCriticalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as DesktopWindow) as integer
- shared method RunCriticalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as NSWindowMBS) as Integer
- shared method RunCriticalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as window) as Integer
- shared method RunInformationalAlertPanel(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string) as Integer
- shared method RunInformationalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as DesktopWindow) as integer
- shared method RunInformationalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as NSWindowMBS) as Integer
- shared method RunInformationalAlertPanelRelativeToWindow(title as string, message as string, defaultButton as string, alternateButton as string, otherButton as string, docWindow as window) as Integer
- 10 constants
Constants
Constant | Value | Description |
---|---|---|
NSAlertAlternateReturn | 0 |
One of the possible return values for the alert panels.
The user pressed the alternate button. |
NSAlertDefaultReturn | 1 |
One of the possible return values for the alert panels.
The user pressed the default button. |
NSAlertErrorReturn | -2 |
One of the possible return values for the alert panels.
The alert cannot identify the reason it was closed; it may have been closed by an external source or by a button other than those listed above. |
NSAlertOtherReturn | -1 |
One of the possible return values for the alert panels.
The user pressed a second alternate button. |
NSCancelButton | 0 |
One of the constants for the modal panel return values.
The Cancel button. |
NSDocModalWindowMask | 64 |
One of the constants you can use to specify the style when creating a window.
The panel is created as a modal sheet. |
NSHUDWindowMask | 8192 | One of the constants you can use to specify the style when creating a window. |
NSNonactivatingPanelMask | 128 |
One of the constants you can use to specify the style when creating a window.
The panel can receive keyboard input without activating the owning application. |
NSOKButton | 1 |
One of the constants for the modal panel return values.
The OK button. |
NSUtilityWindowMask | 16 |
One of the constants you can use to specify the style when creating a window.
The panel is created as a floating window. |
Super class NSWindowMBS
- 88 properties
- property acceptsMouseMovedEvents as boolean
- property allowsConcurrentViewDrawing as boolean
- property allowsToolTipsWhenApplicationIsInactive as boolean
- property alphaValue as Double
- property animationBehavior as Integer
- property aspectRatio as NSSizeMBS
- property Autodisplay as boolean
- property backgroundColor as NSColorMBS
- property backingLocation as Integer
- property backingScaleFactor as Double
- property backingType as Integer
- property canBecomeKeyWindow as boolean
- property canBecomeMainWindow as boolean
- property canBecomeVisibleWithoutLogin as boolean
- property canHide as boolean
- property canStoreColor as boolean
- property className as string
- property classPath as string
- property collectionBehavior as Integer
- property colorSpace as NSColorSpaceMBS
- property contentAspectRatio as NSSizeMBS
- property contentLayoutRect as NSRectMBS
- property contentMaxSize as NSSizeMBS
- property contentMinSize as NSSizeMBS
- property contentResizeIncrements as NSSizeMBS
- property contentView as NSViewMBS
- property currentEvent as NSEventMBS
- property deepestScreen as NSScreenMBS
- property depthLimit as Integer
- property displaysWhenScreenProfileChanges as boolean
- property frame as NSRectMBS
- property hasDynamicDepthLimit as boolean
- property hasShadow as boolean
- Property Height as Double
- property hidesOnDeactivate as boolean
- property identifier as string
- property ignoresMouseEvents as boolean
- property initialFirstResponder as NSViewMBS
- property isDocumentEdited as boolean
- property isExcludedFromWindowsMenu as boolean
- property isFlushWindowDisabled as boolean
- property isKeyWindow as boolean
- property isMainWindow as boolean
- property isMiniaturized as boolean
- property isMovableByWindowBackground as boolean
- property isOnActiveSpace as boolean
- property isOneShot as boolean
- property isOpaque as boolean
- property isSheet as boolean
- property isZoomed as boolean
- Property Left as Double
- property Level as Integer
- property maxSize as NSSizeMBS
- property miniwindowImage as Variant
- property miniwindowTitle as String
- property minSize as NSSizeMBS
- property Movable as boolean
- property parentWindow as NSWindowMBS
- property preferredBackingLocation as Integer
- property preservesContentDuringLiveResize as boolean
- property preventsApplicationTerminationWhenModal as boolean
- property representedFile as folderitem
- property representedFilename as string
- property representedURL as string
- property resizeIncrements as NSSizeMBS
- property Restorable as boolean
- property screen as NSScreenMBS
- property sharingType as Integer
- property showsResizeIndicator as boolean
- property showsToolbarButton as boolean
- property styleMask as Integer
- property SubTitle as String
- property tabbingIdentifier as String
- property tabbingMode as Integer
- property Title as String
- property titlebarAppearsTransparent as Boolean
- property titlebarSeparatorStyle as Integer
- property titleVisibility as Integer
- property toolbar as Variant
- property toolbarStyle as Integer
- Property Top as Double
- property viewsNeedDisplay as boolean
- property Visible as boolean
- Property Width as Double
- property windowController as NSWindowControllerMBS
- property windowNumber as Integer
- property worksWhenModal as boolean
- property frameAutosaveName as string
- 2 shared properties
- shared property allowsAutomaticWindowTabbing as Boolean
- shared property userTabbingPreference as Integer
- 114 methods
- method addChildWindow(win as DesktopWindow, order as integer)
- method addChildWindow(win as NSWindowMBS, order as Integer)
- method addChildWindow(win as window, order as Integer)
- method addTabbedWindow(win as NSWindowMBS, ordered as Integer)
- method animator as NSWindowMBS
- method areCursorRectsEnabled as boolean
- method attachedSheet as NSWindowMBS
- method autorecalculatesContentBorderThicknessForEdge(edge as Integer) as boolean
- method becomeKeyWindow
- method becomeMainWindow
- method cacheImageInRect(r as NSRectMBS)
- method Center
- method childWindows as NSWindowMBS()
- method ClearFocus
- method Close
- method Constructor(w as DesktopWindow)
- method Constructor(w as window)
- method Constructor(x as Double, y as Double, w as Double, h as Double, styleMask as Integer, BackingStoreType as Integer = 0, deferCreation as boolean = false, canBecomeKeyWindow as boolean = false)
- method contentBorderThicknessForEdge(edge as Integer) as Double
- method contentRectForFrameRect(windowFrame as NSRectMBS) as NSRectMBS
- method convertBaseToScreen(p as NSPointMBS) as NSPointMBS
- method convertScreenToBase(p as NSPointMBS) as NSPointMBS
- method dataWithEPSInsideRect(r as NSRectMBS) as Memoryblock
- method dataWithPDFInsideRect(r as NSRectMBS) as Memoryblock
- method deminiaturize
- method disableCursorRects
- method disableFlushWindow
- method disableScreenUpdatesUntilFlush
- method disableSnapshotRestoration
- method discardCachedImage
- method discardCursorRects
- method display
- method displayIfNeeded
- method dockTile as Variant
- method dragImage(image as NSImageMBS, viewLocation as NSPointMBS, offset as NSSizeMBS, NSEvent as NSEventMBS, pboard as NSPasteboardMBS, source as NSViewMBS, slideFlag as boolean)
- method enableCursorRects
- method enableFlushWindow
- method enableSnapshotRestoration
- method endEditingFor(anObject as object = nil)
- method fieldEditor(createFlag as boolean = True, forObject as object = nil) as Variant
- method firstResponder as NSResponderMBS
- method flushWindow
- method flushWindowIfNeeded
- method frameRectForContentRect(windowContent as NSRectMBS) as NSRectMBS
- method GetFrame(byref left as Double, byref top as Double, byref width as Double, byref height as Double)
- method gState as Integer
- method Hide
- method inLiveResize as boolean
- method invalidateCursorRectsForView(View as NSViewMBS)
- method invalidateRestorableState
- method invalidateShadow
- method keyDown(e as NSEventMBS)
- method makeFirstResponder(r as NSResponderMBS) as boolean
- method makeKeyAndOrderFront
- method makeKeyWindow
- method makeMainWindow
- method mergeAllWindows
- method miniaturize
- method moveTabToNewWindow
- method orderBack
- method orderFront
- method orderFrontRegardless
- method orderOut
- method PerformClose
- method performMiniaturize
- method performWindowDragWithEvent(event as NSEventMBS)
- method performZoom
- method print
- method registerForDraggedTypes(Types() as string)
- method removeChildWindow(win as NSWindowMBS)
- method removeChildWindow(win as window)
- method resetCursorRects
- method resignKeyWindow
- method resignMainWindow
- method resizeFlags as Integer
- method restoreCachedImage
- method runToolbarCustomizationPalette
- method saveFrameUsingName(s as String)
- method selectKeyViewFollowingView(view as NSViewMBS)
- method selectKeyViewPrecedingView(view as NSViewMBS)
- method selectNextKeyView
- method selectNextTab
- method selectPreviousKeyView
- method selectPreviousTab
- method sendEvent(e as NSEventMBS)
- method setAutorecalculatesContentBorderThickness(flag as boolean, edge as Integer)
- method setBottomCornerRounded(flag as boolean)
- method setContentBorderThickness(thickness as Double, edge as Integer)
- method setContentSize(size as NSSizeMBS)
- method setFrame(frameRect as NSRectMBS)
- method setFrame(frameRect as NSRectMBS, display as boolean)
- method setFrame(frameRect as NSRectMBS, display as boolean, animated as boolean)
- method SetFrame(left as Double, top as Double, width as Double, height as Double)
- method setFrameAutosaveName(name as String) as boolean
- method setFrameFromString(s as String)
- method setFrameOrigin(point as NSPointMBS)
- method setFrameTopLeftPoint(point as NSPointMBS)
- method setFrameUsingName(name as String, force as boolean = false) as boolean
- method setRestorationClass
- method setTitleWithRepresentedFile(filename as folderitem)
- method setTitleWithRepresentedFilename(filename as string)
- method Show
- method standardWindowButton(button as Integer) as Variant
- method stringWithSavedFrame as String
- method tabbedWindows as NSWindowMBS()
- method toggleFullScreen
- method toggleTabBar
- method toggleToolbarShown
- method toolbarview as NSViewMBS
- method unregisterDraggedTypes
- method update
- method useOptimizedDrawing(value as boolean)
- method WindowHandle as Integer
- method zoom
- 44 shared methods
- shared method contentRectForFrameRect(windowFrame as NSRectMBS, styleMask as UInt32) as NSRectMBS
- shared method frameRectForContentRect(windowContentRect as NSRectMBS, styleMask as UInt32) as NSRectMBS
- shared method minFrameWidthWithTitle(WindowTitle as string, styleMask as UInt32) as Double
- shared method NSDockWindowLevel as Integer
- shared method NSFloatingWindowLevel as Integer
- shared method NSMainMenuWindowLevel as Integer
- shared method NSModalPanelWindowLevel as Integer
- shared method NSNormalWindowLevel as Integer
- shared method NSPopUpMenuWindowLevel as Integer
- shared method NSScreenSaverWindowLevel as Integer
- shared method NSStatusWindowLevel as Integer
- shared method NSSubmenuWindowLevel as Integer
- shared method NSTornOffMenuWindowLevel as Integer
- shared method NSWindowDidBecomeKeyNotification as string
- shared method NSWindowDidBecomeMainNotification as string
- shared method NSWindowDidChangeScreenNotification as string
- shared method NSWindowDidChangeScreenProfileNotification as string
- shared method NSWindowDidDeminiaturizeNotification as string
- shared method NSWindowDidEndLiveResizeNotification as string
- shared method NSWindowDidEndSheetNotification as string
- shared method NSWindowDidEnterFullScreenNotification as string
- shared method NSWindowDidEnterVersionBrowserNotification as string
- shared method NSWindowDidExitFullScreenNotification as string
- shared method NSWindowDidExitVersionBrowserNotification as string
- shared method NSWindowDidExposeNotification as string
- shared method NSWindowDidMiniaturizeNotification as string
- shared method NSWindowDidMoveNotification as string
- shared method NSWindowDidResignKeyNotification as string
- shared method NSWindowDidResignMainNotification as string
- shared method NSWindowDidResizeNotification as string
- shared method NSWindowDidUpdateNotification as string
- shared method NSWindowWillBeginSheetNotification as string
- shared method NSWindowWillCloseNotification as string
- shared method NSWindowWillEnterFullScreenNotification as string
- shared method NSWindowWillEnterVersionBrowserNotification as string
- shared method NSWindowWillExitFullScreenNotification as string
- shared method NSWindowWillExitVersionBrowserNotification as string
- shared method NSWindowWillMiniaturizeNotification as string
- shared method NSWindowWillMoveNotification as string
- shared method NSWindowWillStartLiveResizeNotification as string
- shared method removeFrameUsingName(name as string)
- shared method standardWindowButton(button as Integer, StyleMask as Integer) as Variant
- shared method windowNumberAtPoint(x as Double, y as Double, belowWindowWithWindowNumber as Integer = 0) as Integer
- shared method windowNumbersWithOptions(options as Integer = 0) as Integer()
- 68 constants
Super class NSResponderMBS
- 3 properties
- property Handle as Integer
- property menu as NSMenuMBS
- property nextResponder as NSResponderMBS
- 123 methods
- method beginGestureWithEvent(e as NSEventMBS)
- method cancelOperation
- method capitalizeWord
- method centerSelectionInVisibleArea
- method changeCaseOfLetter
- method complete
- method Constructor Private
- method cursorUpdate(e as NSEventMBS)
- method deleteBackward
- method deleteBackwardByDecomposingPreviousCharacter
- method deleteForward
- method deleteToBeginningOfLine
- method deleteToBeginningOfParagraph
- method deleteToEndOfLine
- method deleteToEndOfParagraph
- method deleteToMark
- method deleteWordBackward
- method deleteWordForward
- method endGestureWithEvent(e as NSEventMBS)
- method flagsChanged(e as NSEventMBS)
- method flushBufferedKeyEvents
- method helpRequested(e as NSEventMBS)
- method indent
- method insertBacktab
- method insertContainerBreak
- method insertDoubleQuoteIgnoringSubstitution
- method insertLineBreak
- method insertNewline
- method insertNewlineIgnoringFieldEditor
- method insertParagraphSeparator
- method insertSingleQuoteIgnoringSubstitution
- method insertTab
- method insertTabIgnoringFieldEditor
- method keyDown(e as NSEventMBS)
- method keyUp(e as NSEventMBS)
- method lowercaseWord
- method magnifyWithEvent(e as NSEventMBS)
- method makeBaseWritingDirectionLeftToRight
- method makeBaseWritingDirectionNatural
- method makeBaseWritingDirectionRightToLeft
- method makeTextWritingDirectionLeftToRight
- method makeTextWritingDirectionNatural
- method makeTextWritingDirectionRightToLeft
- method mouseDown(e as NSEventMBS)
- method mouseDragged(e as NSEventMBS)
- method mouseEntered(e as NSEventMBS)
- method mouseExited(e as NSEventMBS)
- method mouseMoved(e as NSEventMBS)
- method mouseUp(e as NSEventMBS)
- method moveBackward
- method moveBackwardAndModifySelection
- method moveDown
- method moveDownAndModifySelection
- method moveForward
- method moveForwardAndModifySelection
- method moveLeft
- method moveLeftAndModifySelection
- method moveParagraphBackwardAndModifySelection
- method moveParagraphForwardAndModifySelection
- method moveRight
- method moveRightAndModifySelection
- method moveToBeginningOfDocument
- method moveToBeginningOfDocumentAndModifySelection
- method moveToBeginningOfLine
- method moveToBeginningOfLineAndModifySelection
- method moveToBeginningOfParagraph
- method moveToBeginningOfParagraphAndModifySelection
- method moveToEndOfDocument
- method moveToEndOfDocumentAndModifySelection
- method moveToEndOfLine
- method moveToEndOfLineAndModifySelection
- method moveToEndOfParagraph
- method moveToEndOfParagraphAndModifySelection
- method moveToLeftEndOfLine
- method moveToLeftEndOfLineAndModifySelection
- method moveToRightEndOfLine
- method moveToRightEndOfLineAndModifySelection
- method moveUp
- method moveUpAndModifySelection
- method moveWordBackward
- method moveWordBackwardAndModifySelection
- method moveWordForward
- method moveWordForwardAndModifySelection
- method moveWordLeft
- method moveWordLeftAndModifySelection
- method moveWordRight
- method moveWordRightAndModifySelection
- method otherMouseDown(e as NSEventMBS)
- method otherMouseDragged(e as NSEventMBS)
- method otherMouseUp(e as NSEventMBS)
- method pageDown
- method pageDownAndModifySelection
- method pageUp
- method pageUpAndModifySelection
- method performMnemonic(theString as string) as boolean
- method presentError(e as NSErrorMBS) as boolean
- method rightMouseDown(e as NSEventMBS)
- method rightMouseDragged(e as NSEventMBS)
- method rightMouseUp(e as NSEventMBS)
- method rotateWithEvent(e as NSEventMBS)
- method scrollLineDown
- method scrollLineUp
- method scrollPageDown
- method scrollPageUp
- method scrollToBeginningOfDocument
- method scrollToEndOfDocument
- method scrollWheel(e as NSEventMBS)
- method selectAll
- method selectLine
- method selectParagraph
- method selectToMark
- method selectWord
- method setMark
- method showContextHelp
- method swapWithMark
- method swipeWithEvent(e as NSEventMBS)
- method tabletPoint(e as NSEventMBS)
- method tabletProximity(e as NSEventMBS)
- method transpose
- method transposeWords
- method undoManager as NSUndoManagerMBS
- method uppercaseWord
- method yank
This class has no sub classes.
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacCocoa Plugin.