Application object
231
Height
Syntax
Height: integer
Description
Height in pixels of main window.
Example
function Main() {
Var sMessage;
with (Application){
sMessage = "Top-left corner of your Window has the
following coordinates: \n";
sMessage = sM "Top: " + Top + "\n";
// Get top
sMessage = sM "Left: " + Left + "\n\n";
// Get left
sMessage = sM "And the following measurements: \n"
sMessage = sM "Width: " + Width + "\n";
// Get Width
sMessage = sM "Height: " + "\n";
// Get Height
}
}
HInstance
Syntax
HInstance: integer (read-only)
Description
Instance handle of the application.
hWnd
Syntax
hWnd: integer (read-only)
Description
Handle to the main window.
IsColdFusionStudio
Syntax
IsColdFusionStudio: WordBool (read-only)
Description
Boolean. Returns
True
if the application is ColdFusion Studio or JRun Studio,
False
if HomeSite.
Example
function Main(){
with (Application){
if (IsColdFusionStudio){
// Show CF Advanced toolbar
ShowToolBar('CFML Advanced');
}
}
}
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...