Application Object
AddScriptToolbutton
Syntax
AddScriptToolbutton(wsToolbarName,
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
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",
ShowToolBar(sToolBarName);
}
}
AddTagToolbutton
Syntax
AddTagToolbutton(wsToolbarName, wsTagStart, wsTagEnd, wsHint, wsCaption,
wsImageFile: WideString): WordBool;
Boolean. Adds a tag toolbutton (inserts tag pair when clicked) to the passed toolbar.
Description
Fails if toolbar does not exist. Returns
add a duplicate button.
Example
function Main(){
with (Application){
AddTagToolButton('Common', TagCase('<blockquote>'),
}
}
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
already exists, but does not add a duplicate button.
Example
function Main(){
var sVTM_File = 'C:\\Program Files\\Macromedia\\ColdFusion Studio
"hello.js",'A', "");
TagCase('</blockquote>'), 'Block quote', 'BQ', '');
5\\Extensions\\TagDefs\\XHTML\\blockquote.vtm';
wsScriptFile,
if a toolbutton already exists, but does not
True
True
225
wsHint,
wsCaption,
if a
True
if a toolbutton
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?