Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSColorPickerTouchBarItemMBS class.

NSColorPickerTouchBarItemMBS.colorPicker(identifier as string) as NSColorPickerTouchBarItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a bar item containing a button with the standard color picker icon that invokes the color picker.
Example
dim t as NSColorPickerTouchBarItemMBS = NSColorPickerTouchBarItemMBS.colorPicker("test")
t.customizationLabel = "Drawing Color"

You may want to use AddHandler method to add an event handler to this object.

See also:

NSColorPickerTouchBarItemMBS.colorPicker(identifier as string, buttonImage as NSImageMBS) as NSColorPickerTouchBarItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a bar item containing a button with the provided image that invokes the color picker.

You may want to use AddHandler method to add an event handler to this object.

See also:

NSColorPickerTouchBarItemMBS.strokeColorPicker(identifier as string) as NSColorPickerTouchBarItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a bar item containing a button with the standard stroke color picker icon that invokes the color picker.

You may want to use AddHandler method to add an event handler to this object.
Should be used when the item is used for picking stroke colors.

NSColorPickerTouchBarItemMBS.textColorPicker(identifier as string) as NSColorPickerTouchBarItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a bar item containing a button with the standard text color picker icon that invokes the color picker.

You may want to use AddHandler method to add an event handler to this object.
Should be used when the item is used for picking text colors.

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


The biggest plugin in space...