Contents - Index


GetWindowInfo

  

GetWindowInfo returns the left, top, right, bottom, width or height of an EES window in pixels.  The function requires two string inputs, which can be string constants or string variables.  The first must be the name of the window, which must be one of the strings in the left column of the following table.  The second must be a string selected from the right column.  This function is most useful when used with the $ShowWindow directive in order to set the location of a window to a desired position. 

 

EES

EQUATION LEFT

SOLUTION TOP

RESIDUAL RIGHT

PARAMETRIC BOTTOM

FORMAT WIDTH

LOOKUP HEIGHT

DIAGRAM

ARRAY

PLOT

INTEGRAL

DEBUG

REPORT

CALCULATOR

COMP

WARNING

MACRO

 

Notes:

The window name 'EES' refers to the window frame for the EES application.  For this case, LEFT, TOP, RIGHT, and BOTTOM are the positions on the desktop, where 0,0 is the top left corner.  For all other windows, LEFT, TOP, RIGHT and BOTTOM refer to positions relative to the EES window frame.

 

WIDTH and HEIGHT include the margins of the window, except for window name EES.

 

Example: 

x=5

R=getwindowinfo('Equations','right');

T=getwindowinfo('Equations','top');

$ShowWindow Solution left=R  top=T  Width=4 in  {place Solution window to the right of the Equations window}

 

 

See also:  DIAGRAMHEIGHT#

                DIAGRAMWIDTH#           

                PIXELSPERINCH#