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 = 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’);
}
}
}
Содержание ColdFusion Server 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...