Contents - Index


$ShowWindow

 

After EES successfully solves, it displays a window with calculated results.  By default, the Solution window is brought to the front after the Solve, Min/Max or Uncertainty Propagation commands are completed provided that the calculations were not initiated with a Calculate button in the Diagram Window.  The Solve Table, Min/Max Table and Uncertainty Propagation Table commands display the Parametric table after the calculations are completed.  In some cases, it would be better to display a different window, e.g., the Arrays Window or the Diagram Window or perhaps a Plot window.  The $ShowWindow directive provides the capability to display a selected window after calculations are successfully completed.  The Professional license further allows the position and size of the window to be set with this directive.

 

The format of the $ShowWindow directive is:

 

$ShowWindow WindowName1  WindowName2  Left=L  Top=T  Width=W  Height=H

 

where WindowName1 can be any of the following:

 

      EES

Equations

Formatted

Plot

Diagram

Solution

Arrays

Parametric

Lookup

Residuals

Comp

Integral

Report 

Macro

Warnings

Calculator

None

 

WindowName2 is optional.  It is used to bring a specific window to the front in the case where there may be multiple views associated with WindowName1. 

 

If WindowName1 is Solution, Plot, Parametric, Lookup, Diagram or Macro then WindowName 2 can be the name of any of the tabs that appear in the window.  For example:

 

$ShowWindow Parametric 'Table 2'  

 

will display the table whose name on a tab in the Parametric table is 'Table 2'.   The quotes surrounding the WindowName2 are required if there is a space in the tab name.  Note that a string variable can be used in place of a string constant, e.g.,

 

W$='Table 2'

$ShowWindow Parametric W$

 

If the specified window tab name does not exist, the command will be ignored with no error message.

 

Alternatively, Windowname2 can be be an integer representing the tab position.  For example,

 

$ShowWindow Plot 2

 

will display the plot whose tab is second from the left.

 

For the Solution Window

 

$ShowWindow Solution Key Variables

 

will display the Key Variables solution window, if it exists.  It is only necessary to enter the word 'Key'.

 

A specific child Diagram window can be selected as the foremost window by setting WindowName2 to the name of the child diagram window.  For example,

 

$ShowWindow Diagram myChild2 

 

will bring the child diagram window whose name is myChild2 to the front.  The name of the child window can be provided in a string variable. 

 

Optional SIze and Position Specifications

The $ShowWindow directive may include one or more of the following keywords following WindowName1 to set the size and/or position of the specified window. 

LEFT=

TOP=

WIDTH=

HEIGHT=

 

A numerical value or EES variable that has been set to a numerical value must follow each keyword.  The numerical values is assumed to represent pixels unless it is followed by in or cm, as seen in the following example

 

$ShowWindow Solution  Left=2 in Top=3 in

 

Note that the $ShowWindow directive can be used with the GetWindowInfo function to position windows relative to each other,

 

 

Directives