206
Width
Syntax
Width: integer
Width in pixels of the main application window. Use this property with the Height
Description
property to return the size of the main window as well as to resize the window.
WindowState
Syntax
WindowState: integer
Set and get window state.
Description
The following values are allowed:
0 - Normal
1 - Minimized
2 - Maximized
Example
function Main(){
var iNormal = 0;
var iMinimized = 1;
var iMaximized= 2;
with (Application){
// Toggle through all window states
WindowState = iMaximized;
Wait(1000);
WindowState = iMinimized;
Wait(1000);
WindowState = iNormal;
}
}
Methods
BringToFront
Syntax
BringToFront();
Description
Brings the main window to the front of other applications.
Example
function Main() {
with (Application){
BringToFront();
}
}
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?
Questions and answers