
204
Chapter 14 Scripting the Visual Tools Object Model
Left
Syntax
Left: integer
Description
Left (x-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
}
}
ResourceTabShowing
Syntax
ResourceTabShowing: WordBool
Description
Boolean. Specifies whether the resource tab displays.
Example
function Main(){
with (Application){
// Toggle resource tab on/off
ResourceTabShowing = !ResourceTabShowing;
}
}
ResultsShowing
Syntax
ResultsShowing: WordBool
Description
Boolean. Specifies whether the results tab displays.
Example
function Main() {
with (Application){
If (ResultShowing)
ResultShowing = false;
//If the result bar is showing - hide it
Else
ResultShowing = true;
//Hide it otherwise
}
}
Содержание 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...