Read and alter display-related settings
LabTalk Object Type:
The toolbar object is a subobject of the system object. The toolbar object controls the display of toolbars.
Property | Access | Description |
---|---|---|
System.toolbar.names$ | Read only string |
A list of the names of all the toolbars |
Method | Description |
---|---|
System.toolbar.create(buttonGroup, toolbarName) |
Opens a toolbar from a user-defined button group. |
System.toolbar.createcategory("fileName.ini") |
Creates a category from an existing toolbar INI file. Note: The INI object can modify the settings (scripts, image order, etc.) for user-defined button groups, but the changes take effect after restarting Origin. |
System.toolbar.delete(toolbarName) |
Deletes a toolbar, including from the Registry. |
System.toolbar.exists(toolbarName) |
Returns 1 if the toolbar exists. Otherwise, returns 0. |
System.toolbar.isOpen(toolbarName) |
Returns 1 if the toolbar is open. Otherwise, returns 0. |
System.toolbar.LoadConfig(OPXPath) |
Changes the toolbar configuration, on the fly without a need for Origin restart. This method accepts an OPX file path+name and use information in the OPX to configure the toolbars. |
System.toolbar.open(toolbarName) |
Opens a toolbar. Returns 0 if OK. Otherwise, returns 1. |
System.toolbar.close(toolbarName) |
Closes a toolbar. Returns 0 if OK. Otherwise, returns 1. |