The ScBar_AddUrl() function adds a shortcut for a URL to the Shortcut Bar.
ScBar_AddUrl(type, name, parent_ID, shortcut_display_name, url)
• type – An integer indicating whether the shortcut is being added for a specific user or for a specific user class. Use one of the following constants (which are part of the syScBarObj form):
Constant |
Description |
---|---|
scgPERSONAL |
The shortcut is being added for a specific user. |
scgUSERCLASS |
The shortcut is being added for a specific user class. |
• name – A string specifying the user name or user class to which the shortcut is being added.
• parent_ID – An integer indicating the parent node to which the shortcut will be added. The value 0 indicates the root level.
• shortcut_display_name – A string containing the text that will be used for the shortcut.
• url – A string specifying the URL to display.
A boolean. True indicates the shortcut was successfully added, while false indicates it was not.