Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorMBS class.

Previous items Next items

NSColorMBS.controlAlternatingRowBackgroundColors as NSColorMBS()
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: The background colors for alternating content items: such as table view rows, collection view items.
Notes: Available on MacOS 10.3 or newer.
NSColorMBS.controlBackgroundColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for the background of large controls.
Example:
dim c as NSColorMBS = NSColorMBS.controlBackgroundColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Notes: The system color used for the background of large controls such as browsers, table views, and clip views.
NSColorMBS.controlColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for the flat surfaces of a control.
Example:
dim c as NSColorMBS = NSColorMBS.controlColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Notes:
The system color used for the flat surfaces of a control. By default, the control color is a pattern color that will draw the ruled lines for the window background, which is the same as returned by windowBackgroundColor.

If you use controlColor assuming that it is a solid, you may have an incorrect appearance. You should use lightGrayColor in its place.
NSColorMBS.controlDarkShadowColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for the dark edge of the shadow dropped from controls.
Example:
dim c as NSColorMBS = NSColorMBS.controlDarkShadowColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Notes: Of the two dark borders that run along the bottom and right of controls, representing shadows, the color of the outer, darker border.
NSColorMBS.controlHighlightColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for the highlighted bezels of controls.
Example:
dim c as NSColorMBS = NSColorMBS.controlHighlightColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Notes: Of the two light borders that run along the top and left of controls, representing reflections from a light source in the upper left, the color of the inner, duller border.
NSColorMBS.controlLightHighlightColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for light highlights in controls.
Example:
dim c as NSColorMBS = NSColorMBS.controlLightHighlightColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Notes: Of the two light borders that run along the top and left of controls, representing reflections from a light source in the upper left, the color of the outer, brighter border.
NSColorMBS.controlShadowColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for the shadows dropped from controls.
Example:
dim c as NSColorMBS = NSColorMBS.controlShadowColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Notes: Of the two dark borders that run along the bottom and right of controls, representing shadows, the color of the inner, lighter border.
NSColorMBS.controlTextColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for text on controls that aren't disabled.
Example:
dim c as NSColorMBS = NSColorMBS.controlTextColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.currentControlTint as Integer
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns current system control tint.
NSColorMBS.cyanColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose RGB value is 0.0, 1.0, 1.0 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.cyanColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.darkGrayColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose grayscale value is 1/3 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.darkGrayColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.disabledControlTextColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for text on disabled controls.
Example:
dim c as NSColorMBS = NSColorMBS.disabledControlTextColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.findHighlightColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Background color of find indicators: the bubbles that show inline search result hits.
Notes: Requires MacOS 10.13 or newer.
NSColorMBS.grayColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose grayscale value is 0.5 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.grayColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.greenColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose RGB value is 0.0, 1.0, 0.0 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.greenColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.gridColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for the optional gridlines in, for example, a table view.
Example:
dim c as NSColorMBS = NSColorMBS.gridColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.headerColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used as the background color for header cells in table views and outline views.
Example:
dim c as NSColorMBS = NSColorMBS.headerColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Notes: The system color used as the background for header cells in table and outline views.
NSColorMBS.headerTextColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for text in header cells in table views and outline views.
Example:
dim c as NSColorMBS = NSColorMBS.headerTextColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.highlightColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color that represents the virtual light source on the screen.
Example:
dim c as NSColorMBS = NSColorMBS.highlightColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.keyboardFocusIndicatorColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color that represents the keyboard focus ring around controls.
Example:
dim c as NSColorMBS = NSColorMBS.keyboardFocusIndicatorColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.knobColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: Returns the system color used for the flat surface of a slider knob that hasn't been selected.
Example:
dim c as NSColorMBS = NSColorMBS.knobColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
Notes: The knob's beveled edges, which set it in relief, are drawn in highlighted and shadowed versions of the face color. When a knob is selected, its color changes to selectedKnobColor.
NSColorMBS.labelColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Foreground color for static text and related elements.
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.lightGrayColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose grayscale value is 2/3 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.lightGrayColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

Some examples using this method:

NSColorMBS.linkColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Foreground color for standard system links
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.magentaColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.magentaColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.orangeColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.orangeColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

Some examples using this method:

NSColorMBS.placeholderTextColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Foreground color for placeholder text in controls or text views.
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.purpleColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.purpleColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

Some examples using this method:

NSColorMBS.quaternaryLabelColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 18.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Foreground color for large secondary or disabled static text, separators, large glyphs/icons, etc.
Notes: Requires MacOS 10.10 or newer.
NSColorMBS.redColor as NSColorMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa Drawing MBS MacBase Plugin 8.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns an NSColor object whose RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.redColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue

Previous items Next items

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


💬 Ask a question or report a problem
The biggest plugin in space...


Start Chat