Please enable JavaScript to view this site.

ESL Documentation

A key is a graphical object. Use a key when you want to create an object that does not have a rectangular window behind it. A key is most often used to trigger a response when it is selected; therefore, it is enabled by default. A disabled key is usually displayed to provide the user with information.

 

The initial attributes of a key are specified in a key definition. You can change any of these attributes during runtime.

 

If you define a key with just the required specifications, such as:

 

key Stop at 25 10

 

ESL compiles this key definition as:

 

enabled visible white key Stop

    at position 25 10

    priority is 0 parameter is ""

 

Although ESL provides defaults for these attributes, you might

find it useful to specify attributes that the object would be given by default; it reminds you, and anyone working on your program, of all the attributes of each object.

 

The drawing statements that you can use to define the initial appearance of a key are presented in Drawing Statements for Graphical Objects.