
206
Chapter 14 Scripting the Visual Tools Object Model
Width
Syntax
Width: integer
Description
Width in pixels of the main application window. Use this property with the Height
property to return the size of the main window as well as to resize the window.
WindowState
Syntax
WindowState: integer
Description
Set and get window state.
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();
}
}
Содержание COLDFUSION STUDIO 5-USING COLDFUSION 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...