Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSColorPanelMBS.accessoryView as NSViewMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacCocoa Plugin 14.2 Yes No No Yes, macOS only No
Function: The accessory view displayed in the panel.
Notes:
The accessory view can be any custom view you want to display with NSColorPanel, such as a view offering color blends in a drawing program. The accessory view is displayed below the color picker and above the color swatches in the NSColorPanel. The NSColorPanel automatically resizes to accommodate the accessory view.
(Read and Write property)

Feedback, Comments & Corrections

NSColorPanelMBS.alpha as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: Returns the receiver's current alpha value based on its opacity slider.
Notes:
Value is in the range between 0.0 and 1.0.
This is 1.0 (opaque) if the panel has no opacity slider.
(Read only property)

Feedback, Comments & Corrections

NSColorPanelMBS.ColorValue as Color
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The current color as a Realbasic color in the RGB model.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSColorPanelMBS.getColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The current color.
Notes:
The color returned can be RGB or something else.
(Read and Write property)

See also:

Feedback, Comments & Corrections

NSColorPanelMBS.getColorAsRGB as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: The current color.
Notes:
Returned NSColorMBS object is in RGB color mode.
(Read only property)

Feedback, Comments & Corrections

NSColorPanelMBS.isContinuous as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: Returns a Boolean value indicating whether the class continuously calls the Changed event.
Notes:
Returns true if the receiver continuouslycalls the Changed event as the user manipulates the color picker; otherwise false.
(Read and Write property)

Feedback, Comments & Corrections

NSColorPanelMBS.mode as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: Returns the color picker mode.
Notes:
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
(Read and Write property)

Feedback, Comments & Corrections

NSColorPanelMBS.showsAlpha as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Drawing MBS MacCocoa Plugin 7.2 Yes No No Yes, macOS only No
Function: Returns a Boolean value indicating whether or not the panel shows alpha values and an opacity slider.
Notes:
Note that calling the NSColor method setIgnoresAlpha with a value of true overrides any value set with setShowsAlpha.
(Read and Write property)

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins