User Guide

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 = 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
}
}
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
}
}