NSPanelMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

NSPanelMBS class

Super class: NSWindowMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacBase Plugin 8.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The NSPanel class implements a special kind of window (known as a panel), typically performing an auxiliary function.
Example
static n as NSPanelMBS

dim style as Integer = NSPanelMBS.NSClosableWindowMask + NSPanelMBS.NSTitledWindowMask + NSPanelMBS.NSUtilityWindowMask + NSPanelMBS.NSHUDWindowMask + NSPanelMBS.NSResizableWindowMask

n = new NSPanelMBS(100,100,200,200, style, NSPanelMBS.NSWindowBackingLocationDefault, false)

n.Title = "Hello World"
n.Show

Subclass of the NSWindowMBS class.

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

Super class NSResponderMBS

Sub classes:

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries


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


NSPageLayoutMBS   -   NSParagraphStyleMBS


💬 Ask a question or report a problem