Please enable JavaScript to view this site.

ESL Documentation

When you display graphical objects in a graphical region's window, the image can be displayed larger or smaller, depending on the size and proportions of the viewport and window. However, you cannot manipulate text in the same way. You cannot reduce or expand it to fill the viewport.

 

Aligning Text        When a text string is aligned, either by default or because the keyword align is specified, ESL displays text left-justified at the current position of the text cursor. The lower left corner of the first character in the string is placed at the text cursor.

 

In the example below:

 

key Example at position 200 300

    text align "This is alignment"

 

the text cursor and the graphics cursor are initially at position 200 300 in the screen. The text string "This is alignment" will begin at that position.

 

After the text has been displayed, the text cursor is moved to the position immediately following the string, so that the next text displayed will be correctly positioned. The graphics cursor does not move.

 

The keywords text align can be omitted; for example:

 

key Ready at position 150 200

    "ALL SYSTEMS GO"

or

key Ready at position 150 200

    Message