Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Toolbar.SetImage

Overwrites image used for a toolbar item.

Component Version macOS Windows Linux Server iOS SDK
Toolbar 6.4 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "Toolbar.SetImage"; Identifier; Image )   More

Parameters

Parameter Description Example
Identifier The toolbar identifier.

Possible toolbar identifiers:
RecordNavigationToolbarItemIdentifier, ShowAllToolbarItemIdentifier, NSToolbarSpaceItem, NewRecordToolbarItemIdentifier, DeleteRecordToolbarItemIdentifier, NSToolbarSpaceItem, FindDropdownToolbarItemIdentifier, SortToolbarItemIdentifier, UploadServerToolbarItemIdentifier, QuickFindToolbarItemIdentifier, DuplicateRecordToolbarItemIdentifier, ManageToolbarItemIdentifier, SaveAsExcelToolbarItemIdentifier, SaveAsPDFToolbarItemIdentifier, SaveAsSnapshotLinkToolbarItemIdentifier, ImportToolbarItemIdentifier, ExportToolbarItemIdentifier, PrintToolbarItemIdentifier, PageSetupToolbarItemIdentifier, SendMailToolbarItemIdentifier, OmitRecordToolbarItemIdentifier, ShowOmittedToolbarItemIdentifier, NewWindowToolbarItemIdentifier, DebuggerToolbarItemIdentifier, DataViewerToolbarItemIdentifier, SavedFindToolbarItemIdentifier, NewLayoutAnyModeToolbarItemIdentifier
"NewRecordToolbarItemIdentifier"
Image The image to use for the toolbar item. Pass a container value with JPEG, TIFF, PNG or other image formats. $image

Result

Returns OK or error.

Description

Overwrites image used for a toolbar item.
Use an empty image to remove image from table.
You need to call Toolbar.Install at least once before using this command to have it take effect.

Examples

Sets images for new and delete toolbar:

Set Variable [$r; Value:MBS( "Toolbar.SetImage"; "NewRecordToolbarItemIdentifier"; Toolbar::NewRecordImage)]
Set Variable [$r; Value:MBS( "Toolbar.SetImage"; "DeleteRecordToolbarItemIdentifier"; Toolbar::DeleteRecordImage)]

See also

Blog Entries

Created 12nd September 2016, last changed 12nd September 2016


Toolbar.Register - Toolbar.SetLabel

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos

Start Chat