
Application Object
205
Top
Syntax
Top: integer
Description
Top (y-coordinate) 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
}
}
VersionText
Syntax
VersionText: OleString (read-only)
Description
Application name and version.
Example
function Main() {
Var sMessage;
with (Application){
If (IsColdFusionStudio){
sMessage = "You are running ColdFusionStudio - " +
VersionText;
MessageBox(sMessage,"Sample",0);
}
Else{
sMessage = "You are running HomeSite - " +
VersionText;
MessageBox("You are Running HomeSite", "Sample", 0);
}
}
}
Содержание 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...