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
Back to NSColorPanelMBS class.
NSColorPanelMBS.attachColorList(list as NSColorListMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
An application should use this method to add an NSColorList saved with a document in its file package or in a directory other than NSColorList's standard search directories.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSColorPanelMBS.detachColorList(list as NSColorListMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSColorPanelMBS.GetColor(byref red as single, byref green as single, byref blue as single, byref alpha as single) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Values from 0.0 to 1.0.
Returns true if the values are valid.
See also:
NSColorPanelMBS.SetColor(red as single, green as single, blue as single, alpha as single)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Values from 0.0 to 1.0.
See also:
NSColorPanelMBS.setColor(value as NSColorMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
See also:
NSColorPanelMBS.setContinuous(value as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Set value to true to have the receiver calls the Changed event continuously as the color of the NSColorPanel is set by the user; otherwise false.
NSColorPanelMBS.setMode(value as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Constants:
const NSGrayModeColorPanel | = 0 |
const NSRGBModeColorPanel | = 1 |
const NSCMYKModeColorPanel | = 2 |
const NSHSBModeColorPanel | = 3 |
const NSCustomPaletteModeColorPanel | = 4 |
const NSColorListModeColorPanel | = 5 |
const NSWheelModeColorPanel | = 6 |
const NSCrayonModeColorPanel | = 7 |
NSColorPanelMBS.SetPickerMode(value as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Constants:
NSColorPanelGrayModeMask | = &h00000001 |
NSColorPanelRGBModeMask | = &h00000002 |
NSColorPanelCMYKModeMask | = &h00000004 |
NSColorPanelHSBModeMask | = &h00000008 |
NSColorPanelCustomPaletteModeMask | = &h00000010 |
NSColorPanelColorListModeMask | = &h00000020 |
NSColorPanelWheelModeMask | = &h00000040 |
NSColorPanelCrayonModeMask | = &h00000080 |
NSColorPanelAllModesMask | = &h0000ffff |
NSColorPanelMBS.setShowsAlpha(value as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa Drawing | MBS MacCocoa Plugin | 7.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Note that calling the NSColor method setIgnoresAlpha with a value of true overrides any value set with this method.
The items on this page are in the following plugins: MBS MacCocoa Plugin.