User Guide

Application Object 203
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 = sMessage + "Top: " + Top + "\n";
// Get top
sMessage = sMessage + "Left: " + Left + "\n\n";
// Get left
sMessage = sMessage + "And the following measurements: \n"
sMessage = sMessage + "Width: " + Width + "\n";
// Get Width
sMessage = sMessage + "Height: " + 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’);
}
}
}