Platforms to show: All Mac Windows Linux Cross-Platform
NSToolbarItemGroupMBS class
Super class: NSToolbarItemMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Toolbar | MBS MacControls Plugin | 15.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The views and labels of the subitems are used, but the parent's attributes take precedence.
Subclass of the NSToolbarItemMBS class.
- event Action New in 24.5
- 4 properties
- property controlRepresentation as Integer New in 24.5
- property selectedIndex as Integer New in 24.5
- property selectionMode as Integer New in 24.5
- property Selected(index as Integer) as Boolean New in 24.5
- 5 methods
- method Constructor(itemIdentifier as string)
- method Constructor(itemIdentifier as string, images() as NSImageMBS, selectionMode as Integer, labels() as String) New in 24.5
- method Constructor(itemIdentifier as string, titles() as String, selectionMode as Integer, labels() as String) New in 24.5
- method SetSubItems(items() as NSToolbarItemMBS)
- method subitems as NSToolbarItemMBS()
- 6 constants
Constants
Constant | Value | Description |
---|---|---|
ControlRepresentationAutomatic | 0 |
One of the constants that indicates the display style for a grouped toolbar item.
The system dynamically changes the display mode based on the available space. |
ControlRepresentationExpanded | 1 |
One of the constants that indicates the display style for a grouped toolbar item.
The system displays the subitems of a grouped toolbar item horizontally. |
Display Styles
Constant | Value | Description |
---|---|---|
ControlRepresentationCollapsed | 2 |
The system displays the subitems of a grouped toolbar item as a menu. |
Selection Modes
Constant | Value | Description |
---|---|---|
SelectionModeMomentary | 2 |
The system temporarily highlights the select group item when the user selects the item. |
SelectionModeSelectAny | 1 |
The system toggles a highlight on any item selected. |
SelectionModeSelectOne | 0 |
The system displays a highlighted mode on the most recent item selected. |
Super class NSToolbarItemMBS
- 22 properties
- property allowsDuplicatesInToolbar as boolean
- property autovalidates as boolean
- property Bordered as Boolean
- property ClassName as String
- property ClassPath as String
- property Enabled as boolean
- property Handle as Integer
- property Hidden as Boolean New in 24.5
- property image as NSImageMBS
- property itemIdentifier as string
- property label as string
- property MaxSize as NSSizeMBS
- property menuFormRepresentation as NSMenuItemMBS
- property MinSize as NSSizeMBS
- property Navigational as Boolean
- property paletteLabel as string
- property tag as Integer
- property Title as String
- property toolbar as NSToolbarMBS
- property toolTip as string
- property view as NSViewMBS
- property visibilityPriority as Integer
- 6 methods
- method Constructor(Handle as Integer)
- method Constructor(itemIdentifier as string)
- method copy as NSToolbarItemMBS New in 24.5
- method possibleLabels as String() New in 24.5
- method setPossibleLabels(Labels() as String) New in 24.5
- method validate
- 12 shared methods
- shared method NSToolbarCloudSharingItemIdentifier as string
- shared method NSToolbarCustomizeToolbarItemIdentifier as string
- shared method NSToolbarFlexibleSpaceItemIdentifier as string
- shared method NSToolbarInspectorTrackingSeparatorItemIdentifier as string New in 24.5
- shared method NSToolbarPrintItemIdentifier as string
- shared method NSToolbarSeparatorItemIdentifier as string
- shared method NSToolbarShowColorsItemIdentifier as string
- shared method NSToolbarShowFontsItemIdentifier as string
- shared method NSToolbarSidebarTrackingSeparatorItemIdentifier as string
- shared method NSToolbarSpaceItemIdentifier as string
- shared method NSToolbarToggleInspectorItemIdentifier as string New in 24.5
- shared method NSToolbarToggleSidebarItemIdentifier as string
- 4 constants
Constants
Constant | Value | Description |
---|---|---|
NSToolbarItemVisibilityPriorityHigh | 1000 | One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more |
NSToolbarItemVisibilityPriorityLow | -1000 | One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more |
NSToolbarItemVisibilityPriorityStandard | 0 | One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more |
NSToolbarItemVisibilityPriorityUser | 2000 | One of the visibility priority constants. When a toolbar does not have enough space to fit all its items, it must push some items into the overflow menu. These values allow you to suggest a priority for a toolbar item. more |
This class has no sub classes.
Blog Entries
- MBS Xojo Plugins, version 24.5pr7
- MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 15.0
- MBS Xojo / Real Studio Plugins, version 14.5pr3
Release notes
- Version 24.5
- Added more methods and properties to NSToolbarItemGroupMBS class.
The items on this page are in the following plugins: MBS MacControls Plugin.
NSTokenFieldMBS - NSToolbarItemMBS