Platforms to show: All Mac Windows Linux Cross-Platform

Next items

NSColorMBS.alphaComponent as double
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The alpha value of the color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.alphaComponent)

Notes: Value is from 0.0 to 1.0.
NSColorMBS.alternateSelectedControlColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the system color used for the face of a selected control.
Example:
dim c as NSColorMBS = NSColorMBS.alternateSelectedControlColor

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

Notes: The system color used for the face of a selected control—a control being clicked or dragged. This color can be used where iApp-like highlighting is desired.
NSColorMBS.alternateSelectedControlTextColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the system color used for text in a selected control.
Example:
dim c as NSColorMBS = NSColorMBS.alternateSelectedControlTextColor

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

Notes: The system color used for text in a selected control—a control being clicked or dragged. This color can be used where iApp-like highlighting is desired.
NSColorMBS.blackColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns an NSColor object whose grayscale value is 0.0 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.blackColor

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

NSColorMBS.blackComponent as double
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The color value from a CMYK color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceCMYK(0.1, 0.2, 0.3, 0.4)
MsgBox str(c.blackComponent)

Notes: Value is from 0.0 to 1.0.
NSColorMBS.blendedColorWithFraction(alpha as double, c as NSColorMBS) as NSColorMBS
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object whose component values are a weighted sum of the receiver’s and the specified color object's.
Example:
dim b as NSColorMBS = NSColorMBS.blueColor
dim r as NSColorMBS = NSColorMBS.redColor
dim c as NSColorMBS = b.blendedColorWithFraction(0.5, r)

MsgBox c.description

Notes:
fraction: The amount of the color to blend with the receiver's color. The method converts color and a copy of the receiver to RGB, and then sets each component of the returned color to fraction of color’s value plus 1 – fraction of the receiver’s.
color: The color to blend with the receiver's color.

The resulting color object or nil if the colors can’t be converted.
NSColorMBS.blueColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns an NSColor object whose RGB value is 0.0, 0.0, 1.0 and whose alpha value is 1.0.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor

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

NSColorMBS.blueComponent as double
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The color value from a RGB color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.blueComponent)

Notes: Value is from 0.0 to 1.0.
NSColorMBS.brightnessComponent as double
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The color value from a HSV color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceHSV(0.1, 0.2, 0.3)
MsgBox str(c.brightnessComponent)

Notes: Value is from 0.0 to 1.0.
NSColorMBS.brownColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns an NSColor object whose RGB value is 0.6, 0.4, 0.2 and whose alpha value is 1.0.
Notes:
dim c as NSColorMBS = NSColorMBS.brownColor

window1.Title=c.description
window1.HasBackColor=true
window1.backcolor=c.colorValue
NSColorMBS.catalogNameComponent as string
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the name of the catalog containing the receiver’s name.
Notes: This method raises an exception if the receiver’s color space isn’t NSNamedColorSpace.
class NSColorMBS
class, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The class for a Cocoa color.
Example:
dim c as NSColorMBS = NSColorMBS.blueColor
MsgBox str(c.blueComponent)

NSColorMBS.clearColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns an NSColor object whose grayscale and alpha values are both 0.0.
Example:
dim c as NSColorMBS = NSColorMBS.clearColor

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

NSColorMBS.colorFromPasteboard as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the NSColor currently on the given pasteboard.
Notes: The color currently on the pasteboard or nil if pasteBoard doesn’t contain color data.
NSColorMBS.colorNameComponent as string
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the receiver’s name.
Notes: This method raises an exception if the receiver’s color space isn’t NSNamedColorSpace.
NSColorMBS.colorSpace as NSColorSpaceMBS
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns an object representing the color space of the receiver.
Example:
dim b as NSColorMBS = NSColorMBS.blueColor

MsgBox b.colorSpace.localizedName

Notes:
An object representing a color space. The returned NSColorSpace object may represent a custom color space.

Calling this method raises an exception if the receiver is not based on a color space represented by an NSColorSpace object—specifically, colors designated by NSNamedColorSpace and NSPatternColorSpace. If you are unsure about a color object, convert it to an equivalent NSColorSpace-based object before calling this method. Color objects created with color-space names NSCalibratedWhiteColorSpace, NSCalibratedBlackColorSpace, NSCalibratedRGBColorSpace, NSDeviceWhiteColorSpace, NSDeviceBlackColorSpace, NSDeviceRGBColorSpace, NSDeviceCMYKColorSpace, or NSCustomColorSpace—or with the NSColorSpace class methods corresponding to these names—are safe to use with this method. See “About Color Spaces" in Color Programming Topics for Cocoa for a list of these corresponding methods.
NSColorMBS.colorSpaceName as string
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Get the color space of the color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceHSV(0.1, 0.2, 0.3)

MsgBox c.colorSpaceName

NSColorMBS.colorUsingColorSpace(colorSpace as NSColorSpaceMBS) as NSColorMBS
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns a new color object representing the color of the receiver in the specified color space.
Example:
dim b as NSColorMBS = NSColorMBS.blueColor
dim c as NSColorMBS = b.colorUsingColorSpace(NSColorSpaceMBS.deviceRGBColorSpace)

MsgBox b.description

Notes:
space: The color space of the new NSColor object.

Returns the new NSColor object. This method converts the receiver's color to an equivalent one in the new color space. Although the new color might have different component values, it looks the same as the original. Returns nil if conversion is not possible.

If the receiver's color space is the same as that specified in space, this method returns the same NSColor object.
NSColorMBS.colorUsingColorSpaceName(colorSpace as string) as NSColorMBS
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor whose color is the same as the receiver’s, except that the new NSColor is in the specified color space.
Notes:
colorSpace: The name of the color space containing the new NSColor object. If colorSpace is "", the most appropriate color space is used.

The new NSColor object or nil if the specified conversion cannot be done.
NSColorMBS.colorValue as color
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the color value of this color.
Notes:
The alphaComponent is ignored.
Returns RGB(RedComponent*255, GreenComponent*255, BlueComponent*255).

Plugin converts color to calibrated RGB if needed.
NSColorMBS.colorWithAlphaComponent(alpha as double) as NSColorMBS
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object that has the same color space and component values as the receiver, but the specified alpha component.
Example:
dim b as NSColorMBS = NSColorMBS.blueColor.colorWithAlphaComponent(0.5)
MsgBox b.description // shows "NSCalibratedRGBColorSpace 0 0 1 0.5"

Notes:
alpha: The opacity value of the new NSColor object.

Returns a new NSColor object. If the receiver’s color space doesn’t include an alpha component, the receiver is returned.

A subclass with explicit opacity components should override this method to return a color with the specified alpha.
NSColorMBS.colorWithCalibratedHSV(hue as double, saturation as double, brightness as double, alpha as double=1.0) as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object using the given opacity and HSB color space components.
Example:
dim b as NSColorMBS = NSColorMBS.colorWithCalibratedHSV(1.0, 0.5, 0.2, 1.0)
MsgBox b.description // shows "NSCalibratedRGBColorSpace 0.2 0.1 0.1 1"

Notes:
hue: The hue component of the color object in the HSB color space.
saturation: The saturation component of the color object in the HSB color space.
brightness: The brightness (or value) component of the color object in the HSB color space.
alpha: The opacity value of the color object,

Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0.
NSColorMBS.colorWithCalibratedRGB(red as double, green as double, blue as double, alpha as double=1.0) as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object using the given opacity and RGB components.
Example:
dim b as NSColorMBS = NSColorMBS.colorWithCalibratedRGB(1.0, 0.5, 0.2, 1.0)
MsgBox b.description // shows "NSCalibratedRGBColorSpace 1 0.5 0.2 1"

Notes:
red: The red component of the color object.
green: The green component of the color object.
blue: The blue component of the color object.
alpha: The opacity value of the color object.

Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0.
NSColorMBS.colorWithCalibratedWhite(white as double, alpha as double=1.0) as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object using the given opacity and grayscale value.
Example:
dim b as NSColorMBS = NSColorMBS.colorWithCalibratedWhite(1.0, 1.0)
MsgBox b.description // shows "NSCalibratedWhiteColorSpace 1 1"

Notes:
white: The grayscale value of the color object.
alpha: The opacity value of the color object.

Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0.
NSColorMBS.colorWithDeviceCMYK(cyan as double, magenta as double, yellow as double, black as double, alpha as double=1.0) as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object using the given opacity value and CMYK components.
Example:
dim b as NSColorMBS = NSColorMBS.colorWithDeviceCMYK(0.5, 1.0, 0.5, 0.2, 1.0)
MsgBox b.description // shows "NSDeviceCMYKColorSpace 0.5 1 0.5 0.2 1"

Notes:
cyan: The cyan component of the color object.
magenta: The magenta component of the color object.
yellow: The yellow component of the color object.
black: The black component of the color object.
alpha: The opacity value of the color object.

Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0. In PostScript, this color space corresponds directly to the device-dependent operator setcmykcolor.
NSColorMBS.colorWithDeviceHSV(hue as double, saturation as double, brightness as double, alpha as double=1.0) as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object using the given opacity value and HSB color space components.
Example:
dim b as NSColorMBS = NSColorMBS.colorWithDeviceHSV(1.0, 0.5, 0.2, 1.0)
MsgBox b.description // shows "NSDeviceRGBColorSpace 0.2 0.1 0.1 1"

Notes:
hue: The hue component of the color object.
saturation: The saturation component of the color object.
brightness: The brightness component of the color object.
alpha: The opacity value of the color object.

Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0. In PostScript, this color space corresponds directly to the device-dependent operator setrgbcolor.
NSColorMBS.colorWithDeviceRGB(red as double, green as double, blue as double, alpha as double=1.0) as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object using the given opacity value and RGB components.
Example:
dim b as NSColorMBS = NSColorMBS.colorWithDeviceRGB(1.0, 0.5, 0.2, 1.0)
MsgBox b.description // shows "NSDeviceRGBColorSpace 1 0.5 0.2 1"

Notes:
red: The red component of the color object.
green: The green component of the color object.
blue: The blue component of the color object.
alpha: The opacity value of the color object.

Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0. In PostScript, this color space corresponds directly to the device-dependent operator setrgbcolor.
NSColorMBS.colorWithDeviceWhite(white as double, alpha as double=1.0) as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object using the given opacity and grayscale values.
Example:
dim b as NSColorMBS = NSColorMBS.colorWithDeviceWhite(1.0, 1.0)
MsgBox b.description // shows "NSDeviceWhiteColorSpace 1 1"

Notes:
white: The grayscale value of the color object.
alpha: The opacity value of the color object.

Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0. In PostScript, this color space corresponds directly to the device-dependent operator setgray.
NSColorMBS.colorWithPatternImage(image as variant) as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates and returns an NSColor object that uses the specified image pattern.
Example:
dim p as Picture = LogoMBS(100)
dim n as new NSImageMBS(p)
dim c as NSColorMBS = NSColorMBS.colorWithPatternImage(n)
dim x as NSImageMBS = c.patternImage

Backdrop=x.CopyPictureWithMask

Notes:
The image is tiled starting at the bottom of the window. The image is not scaled.

Parameter is a NSImageMBS object. We declare it as a variant to reduce plugin dependencies.
NSColorMBS.Components as double()
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the components of the receiver as an array.
Example:
dim b as NSColorMBS = NSColorMBS.blueColor
dim c(-1) as Double = b.Components
dim lines(-1) as string

for each d as Double in c
lines.Append str(d)
next

MsgBox Join(lines) // shows 0 0 1 1

Notes: You can invoke this method on NSColor objects created from custom color spaces to get the individual floating point components, including alpha. Raises an exception if the receiver doesn’t have floating-point components. To find out how many components are in the components array, send the receiver a numberOfComponents message.
NSColorMBS.controlBackgroundColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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.cyanColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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.cyanComponent as double
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 7.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The color value from a CMYK color.
Example:
dim c as NSColorMBS = NSColorMBS.colorWithDeviceCMYK(0.1, 0.2, 0.3, 0.4)
MsgBox str(c.cyanComponent)

Notes: Value is from 0.0 to 1.0.
NSColorMBS.darkGrayColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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.description as string
method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 9.8, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The description of the color object.
Example:
dim n as NSColorMBS = NSColorMBS.blueColor

MsgBox n.description // shows "NSCalibratedRGBColorSpace 0 0 1 1"

NSColorMBS.disabledControlTextColor as NSColorMBS
shared method, Graphics & Pictures, MBS REALbasic CocoaBase Plugin (NSColor), class NSColorMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

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

Previous items Next items

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




Links
MBS Realbasic PDF Plugins - Pfarrgemeinde St. Arnulf Nickenich