Please enable JavaScript to view this site.

ESL Documentation

You can change the position of a graphical region's window, or of all the windows in a class, with the change window position action statement. The coordinates are specified in positive or negative integer values in the graphical region's coordinate system.

 

The change window position by statement changes the relative position of the graphical region's window. For example, suppose you move Blackboard's window from its initialized position, as shown below:

 

response to ChangePos

    change Blackboard window position by 0 50

 

The viewport remains the same, but the part of the graphical region displayed in the viewport changes. Changed from its original position of being centered within the viewport, Round now appears as:

 

_img306

 

The window position has been moved up, so that what appears in the viewport is a higher portion of the graphical region. Only the top of the circle is now visible. Neither the size of the viewport nor the size of the window has been changed, so the part of the circle that is displayed has not changed size, nor has it been distorted in any way.

 

The change window position to statement changes the absolute

position of the graphical region's window; for example:

 

response to ChangePos

    change Blackboard window position to 75 75

 

The position of Blackboard's window has been moved from its initialized position of 0 0 in the graphical region. Blackboard's viewport displays only a quarter of the circle, as shown below. The remainder of the circle is no longer in the window, so it is clipped.

_img307