198
Chapter 14 Scripting the Visual Tools Object Model
Creating a custom toolbutton and toolbar
After you write a script, you can create a custom toolbutton to execute the script
from within the program. If you intend to write multiple scripts, you can create a
toolbar for them. You can rearrange the buttons and add separators in the toolbar.
To create a custom toolbutton:
1
On the Toolbars tab, select your custom script toolbar from the Toolbars list.
The toolbar displays at the top of the tab.
2
Click Add Custom Button.
3
In the Custom Toolbutton dialog box, select the Execute an ActiveScript file
option.
4
Enter a path and file name in the Script File box.
5
Make selections in the Button Image, Button Caption, and Button Hint boxes.
You can optionally create script hot keys on the Script Shortcuts tab and then
click the Show keyboard shortcuts in toolbutton hints box on the Toolbars tab.
6
Click OK.
To create a toolbar for custom scripts:
1
Select
Options > Customize
from the menu.
2
Click the Add Toolbar button on the Toolbars tab.
3
Enter a name for the toolbar and click OK.
4
On the Toolbars tab, select the check box on the Toolbars list to display the new
toolbar in the workspace.
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...