Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

TouchBar.SetPrincipalItemIdentifier

Sets the principal item identifier.

Component Version macOS Windows Linux Server iOS SDK
TouchBar 6.5 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "TouchBar.SetPrincipalItemIdentifier"; TouchBarRef; Identifier )   More

Parameters

Parameter Description Example
TouchBarRef The reference number for the touch bar. $TouchBar
Identifier The identifier for the main command. "Anaylze"

Result

Returns OK or error.

Description

Sets the principal item identifier.
Specifying a principal item identifier communicates that the item with that identifier has special significance to this touch bar. Currently, that item will be placed in the center of the resolved touch row. Note that multiple visible bars may each specify a principal item identifier - but only one of them can have the request honored.

Examples

Set main item:

Set Variable [$r; Value:MBS( "TouchBar.SetPrincipalItemIdentifier"; $t; "NextRecord" )]

See also

Example Databases

This function checks for a license.

Created 1st November 2016, last changed 3th November 2016


TouchBar.SetDefaultItemIdentifiers - TouchBar.ToggleCustomizationPalette