
Application Object
225
AddScriptToolbutton
Syntax
AddScriptToolbutton(wsToolbarName, wsScriptFile, wsHint, wsCaption,
wsImageFile: WideString): WordBool;
Description
Boolean. Adds a script toolbutton (executes passed JScript or VBScript file when
clicked) to the passed toolbar. Fails if toolbar does not exist. Returns
True
if a
toolbutton already exists, but does not add a duplicate button.
Example
function Main() {
Var sToolBarName = "MyToolBar";
with (Application) {
CreateToolbar (sToolBarName);
AddScriptToolbutton (sToolBarName, "C:\\temp\scripts\hello.js",
"hello.js",’A’, "");
ShowToolBar(sToolBarName);
}
}
AddTagToolbutton
Syntax
AddTagToolbutton(wsToolbarName, wsTagStart, wsTagEnd, wsHint, wsCaption,
wsImageFile: WideString): WordBool;
Description
Boolean. Adds a tag toolbutton (inserts tag pair when clicked) to the passed toolbar.
Fails if toolbar does not exist. Returns
True
if a toolbutton already exists, but does not
add a duplicate button.
Example
function Main(){
with (Application){
AddTagToolButton(’Common’, TagCase(’<blockquote>’),
TagCase(’</blockquote>’), ’Block quote’, ’BQ’, ’’);
}
}
AddVTMToolbutton
Syntax
AddVTMToolbutton(wsToolbarName, wsScriptFile, wsHint, wsCaption,
wsImageFile: WideString): WordBool;
Description
Boolean. Adds a VTM toolbutton (displays passed VTM dialog box when clicked) to
the passed toolbar. Fails if the toolbar does not exist. Returns
True
if a toolbutton
already exists, but does not add a duplicate button.
Example
function Main(){
var sVTM_File = ’C:\\Program Files\\Macromedia\\ColdFusion Studio
5\\Extensions\\TagDefs\\XHTML\\blockquote.vtm’;
Содержание 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...