The Act! Premium (access via web) toolbars can be manipulated via the IWebToolbar interface defined in the Act.Web.Framework assembly. Plug-ins access the toolbars via the Toolbar property of the ACTSessionManager. The interfaces used to manipulate the toolbars are as follows:
The view containing the toolbar to be modified, values are:
Methods
Returns the number of items in the toolbar of the given view. View and VCR buttons are not counted. If a view has a VCR control or detail/list view buttons, the 0th toolbar item is the first one after these items. For the current implementation the number of items in the default toolbar is hardcoded.
Enables or disables the menu item at “location” which must be between 0 and Count.
Inserts a new toolbar item at the specified location in the specified view.
Parameters
location: The index in the toolbar to position the new item. If the number is greater than Count then the item is appended to the end of the list.
view: The view containing the toolbar to add the item to.
Id: A unique string used to identify the toolbar item.
image: The filename and path of the image to display on the toolbar button. The path is relative to the APFW path.
function: The function or javascript code to execute when the toolbar button is selected.
enabled: Whether or not the item is initially enabled.
Removes a toolbar item at the specified location in the specified view.
How do I...?