226
Chapter 14 Scripting the Visual Tools Object Model
with (Application){
AddVTMToolbutton(’Common’, sVTM_File, ’Block quote’, ’BQ’, ’’);
}
}
CreateToolbar
Syntax
CreateToolbar(wsToolbarName: WideString): WordBool;
Description
Boolean. Creates a new, undocked toolbar of the passed name. Fails if the toolbar of
the same name already exists.
Example
function Main() {
Var sToolBarName = "MyToolBar";
with (Application) {
CreateToolbar (sToolBarName);
ShowToolBar(sToolBarName);
}
}
DeleteToolbar
Syntax
DeleteToolbar(wsToolbarName: WideString): WordBool;
Description
Boolean. Physically deletes the toolbar. Fails if the toolbar does not exist or if the
toolbar is one of the built-in toolbars. Works only on custom toolbars; built-in
toolbars can be hidden, but not deleted.
Example
function Main() {
Var sToolBarName = "MyToolBar";
with (Application) {
DeleteToolbar (sToolBarName);
}
}
HideToolbar
Syntax
HideToolbar(wsToolbarName: WideString): WordBool;
Description
Boolean. Hides a toolbar. Fails if the toolbar does not exist.
Example
function Main() {
Var sToolBarName = "MyToolBar";
with (Application) {
HideToolbar (sToolBarName);
}
}
Содержание 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...