234
Chapter 15 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();
}
}
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...