Toolbar And Toolbutton Methods - MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual

Table of Contents

Advertisement

224
Wait
Syntax
Wait(nMilliseconds: Integer);
Pauses for given number of milliseconds. Use Wait to enable scripts to execute loops
Description
yet still allow access to the UI. Without the call to Wait in the loop, the application
appears locked and the user cannot change views.
Example
The following JScript sample waits for the user to return to edit source view:
var app = Application;
while (app.CurrentView != 1) {
app.Wait(100);
}
This is the same sample code in VBScript:
set app = Application
while app.CurrentView
app.Wait (100)
wend

Toolbar and toolbutton methods

This section contains the toolbar manipulation methods available in the Application
object, grouped together for easy reference.
A unique name identifies each toolbar. The name of the toolbar displays in the title
bar caption when the toolbar is not docked. Toolbars are loaded from files in the
toolbar directory, which can be obtained from the
name is the same as its file name without the path or extension. For example, if the
toolbar file name is Custom.tbr, then the toolbar name is Custom.
When you create a toolbutton, remember that a toolbutton label is limited to two
characters.
AddAppToolbutton
Syntax
AddAppToolbutton(wsToolbarName,
String): WordBool;
Boolean. Adds a toolbutton for an external application to the passed toolbar. Fails if
Description
the toolbar does not exist or if the toolbutton could not be added. Returns
same toolbutton (based on
but does not add a duplicate button.
Example
function Main(){
with (Application){
AddAppToolbutton('Standard', 'Notepad.exe', '', 'NotePad');
}
}
Chapter 14 Scripting the Visual Tools Object Model
1
ToolbarDir
wsExeFile,
and
wsExeFile
wsCmdLine
property. The toolbar
wsCmdLine,
wsHint:
True
) already exists on the toolbar,
Wide-
if the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

This manual is also suitable for:

Coldfusion studio 5

Table of Contents