Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSToolbarItemGroupMBS class.

NSToolbarItemGroupMBS.Constructor(itemIdentifier as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 15.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The constructor.

itemIdentifier: The identifier for the receiver. itemIdentifier is never seen by users and should not be localized.

The identifier is used by the toolbar and its delegate to identify the kind of the toolbar item.

See also:

NSToolbarItemGroupMBS.Constructor(itemIdentifier as string, images() as NSImageMBS, selectionMode as Integer, labels() as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a grouped toolbar item with labels.

itemIdentifier: The identifier for the grouped toolbar item.
images: An array of images to present as subitems in the grouped toolbar item.
selectionMode
A value that indicates how the grouped toolbar item presents selections.
labels: Labels that correspond to the specified images.

See also:

NSToolbarItemGroupMBS.Constructor(itemIdentifier as string, titles() as String, selectionMode as Integer, labels() as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a grouped toolbar item with images.
Example
Var t As New MyNSToolbarItemGroupMBS("test", Array("Hello", "World"), NSToolbarItemGroupMBS.SelectionModeSelectOne, Array("Hello", "World"))

t.label = "Test"

itemIdentifier: The identifier for the grouped toolbar item.
titles: An array of titles to present as subitems in the grouped toolbar item.
selectionMode: A Boolean value that indicates how the grouped toolbar item presents selections.
labels: Labels that correspond to the specified titles.

See also:

NSToolbarItemGroupMBS.Selected(index as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Toolbar MBS MacControls Plugin 24.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Indicates whether a specified index is currently selected.

Gets or sets the selected state of a subitem in a grouped toolbar item.

Use this method when you specify the NSToolbarItemGroupSelectionModeSelectAny selection mode for the grouped toolbar item to determine which subitems are currently selected.
(Read and Write computed property)

NSToolbarItemGroupMBS.SetSubItems(items() as NSToolbarItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 15.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Sets the subitems for the receiver.

subitems: An array of instances of NSToolbarItem objects that form the subitems for the receiver.

You should call this method to set the subitems before returning the item to the toolbar. NSToolbarItemGroup objects cannot contain other NSToolbarItemGroup objects as subitems.

NSToolbarItemGroupMBS.subitems as NSToolbarItemMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Toolbar MBS MacControls Plugin 15.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the subitems for the receiver.

By default, an NSToolbarItemGroup instance has an empty array of subitems.

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


The biggest plugin in space...