Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorMBS class.

Previous items

NSColorMBS.unemphasizedSelectedTextBackgroundColor 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 for unemphasized text selection (e.g. when the associated control/view/window is not key)
Notes: Requires MacOS 10.14 or newer.
NSColorMBS.unemphasizedSelectedTextColor 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 foreground for unemphasized text selection (e.g. when the associated control/view/window is not key)
Notes: Requires MacOS 10.14 or newer.
NSColorMBS.whiteColor 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 and alpha values are both 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.whiteColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.windowBackgroundColor 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 a pattern color that will draw the ruled lines for the window background.
Example:
dim c as NSColorMBS = NSColorMBS.windowBackgroundColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.windowFrameColor 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 window frames, except for their text.
Example:
dim c as NSColorMBS = NSColorMBS.windowFrameColor

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.windowFrameTextColor 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 text in window frames.
Example:
dim c as NSColorMBS = NSColorMBS.windowFrameTextColor

// convert to Calibrated RGB ColorSpace
c=c.colorUsingColorSpaceName("NSCalibratedRGBColorSpace")

Title=c.description

window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.yellowColor 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, 1.0, 0.0 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.yellowColor

Title=c.description

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

Previous 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