Tech Tip: Creating a Custom Toolbar Button

October 27th, 2008 Comment on this article

A custom toolbar button allows the user to access a frequently used action or application from within the Laserfiche Client. This example demonstrates adding a toolbar button to launch Microsoft Outlook, but you can add many different applications or scripts.
For example, many users like to have a toolbar button to open a frequently used internal program, such as a customer database, or another Laserfiche program, such as Workflow. Another option is to create a script using the Toolkit, save it as an executable file, and make a custom toolbar button to launch that script.

To create a custom toolbar button:

  1. Right-click anywhere on the toolbar and select Customize.
  2. The Customize dialog box will appear.

    customize-dialog-box

  3. In the Toolbars tab, click Custom… and the Custom Toolbar Buttons dialog box will appear. In the image shown, there is already a custom button for the Firefox browser.

    custom-toolbar-buttons

  4. Click Add… and the Toolbar Button Properties dialog box will appear.

    toolbar-button-properties

  5. In the Name option, type the name you want to associate with the new custom button.
  6. In the Command option, type or browse to the path for the application you want the button to open. For example, to create a button to open Outlook, you would input the path to the Outlook.exe file, which launches Outlook.
  7. In the Icon option, select an icon for the application. You can add any image file you want. Many executable files have a number of icons associated with them; you can select one of these files (such as Outlook.exe) and browse the available icons to choose one.
  8. Click OK to close the Toolbar Button Properties dialog box and OK to close the Custom Toolbar Buttons dialog box.
  9. Select the Commands tab, and select the Custom category.
  10. Drag the new command from the list to a toolbar.

    customize-toolbars-commands

Tags:

Comment on this article