226
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);
}
}
Chapter 14 Scripting the Visual Tools Object Model
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?