Please enable JavaScript to view this site.

ESL Documentation

You can change the size of the window of a textual region, or of all the textual region windows in a class, with the change window size action statement. This is the same statement used to change the window size of a graphical region; the only difference is that you must specify columns and lines rather than X Y coordinates. This is because a textual region's window is specified in the textual region's coordinate system, and not that of its ancestor.

 

If you change the viewport or window size of the textual region's parent, the  window size of the textual region will change only if you defined or changed the textual region's size by viewport size (in X Y coordinates of the textual region's parent).

 

The change window size by statement changes the relative size of the window by positive or negative integer values representing the number of columns and lines by which the size is to change; for example:

 

response to ...

    change Comment window size by 30 columns 10 lines

 

If Comment's window size had been 40 columns wide and 60 lines long, it will be 30 columns wider and 10 lines longer after this statement is executed (a total of 70 columns by 70 lines). The top left of the textual region has moved, but still contains the same character (column 1, line 1). The bottom left of the textual region has not moved - it is at the same X Y coordinates of its parent - but now contains new text (or blanks).

 

If you use negative values, the result must be non-negative; for example:

 

response to ...

    change Comment window size by 30 columns -60 lines

 

If Comment's window size had been 40 columns by 50 columns, the result would be a total of 70 columns by -10 lines, which is invalid.

 

The change window size to statement changes the absolute size of the window with positive integer values representing the number of columns and lines. These represent the new dimensions of the window; for example:

 

response to ...

    change Box window size to 30 columns 50 lines

 

No matter what size Box's window was, it will be 30 columns wide and 50 lines long after this statement is executed.