Please enable JavaScript to view this site.

ESL Documentation

Drawing Statement

Draw a rectangle in a graphical object.

[solid] [[color] COLOR] box XOFFSET YOFFSET

solid

Fill the box with the color specified. If you omit this keyword, ESL draws only the box's perimeter (out line).

color

Draw the box in the specified color, overriding all other color specifications that otherwise would affect this drawing statement.

COLOR

A string value, integer value, or color keyword representing an ESL color. If you do not specify a color, ESL draws the box in the color specified in a pattern reference or object definition.

XOFFSET

An integer value specifying the width of the box, in the object's coordinates.

YOFFSET

An integer value specifying the height of the box, in the object's coordinates.

Description

ESL positions the lower left corner of the box at the current position of the graphics cursor. The position of the opposite (upper right-hand) corner is determined by the XOFFSET and YOFFSET specifications. The final position of the graphics cursor is the same as its initial position, and the text cursor is moved to that position.

The out line of a box is always one pixel wide.

Example

key Start_KEY at position 10 10

box 50 25

key Start_KEY at position 100 100

solid red box Length Height

response to ToDo_PB

add to Start_KEY

solid color Color box

xposition of Stop_KEY yposition of Stop_KEY