Application object
253
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 toolbutton.
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 toolbutton.
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 toolbutton.
Example
function Main(){
var sVTM_File = 'C:\\Program Files\\Macromedia\\ColdFusion Studio
5\\Extensions\\TagDefs\\XHTML\\blockquote.vtm';
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...