NSColorMBS shared methods

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 NSColorMBS class.

Previous items

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
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
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
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
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