Please enable JavaScript to view this site.

ESL Documentation

Table users can also use a mouse to navigate around a table, perform selection, and initiate the editing of a cell.

 

If a user is editing or entering text in a cell and uses the mouse to move the focus out of the table, the current edit is completed. If an integer or float cell was being edited and the user entered an illegal value, the table will beep and leave the original value unchanged. Then the focus is moved to the new location.

 

When the user double-clicks on a cell, ESL generates a response. Your application can decide the proper behavior. For example, the following code will cause a table to switch to edit mode in response to a double-click:

 

response to table on button1 double click 

if (xcoord != 0 and ycoord != 0) then

make object edit

else 

# Did not double click in a cell. 

end if

 

See Adding Double-Click Behavior for a complete example.

 

The following table lists the default behaviors for various mouse actions.

 

Mouse Action

Location

Behavior

Click

 

 

Cell

Make this the current cell.

Do not affect the selection.

Row heading

Toggle selection of this row

(if row selection is enabled for the table).

Column heading

Toggle selection of this column  

(if column selection is enabled for the table).

Drag

 

 

 

Row heading

Select a range of rows  

(if row selection is enabled for the table).

Column heading

Select a range of columns

(if column selection is enabled for the table).

Between

columns

Resize the column

(if column resizing is enabled for the table and the column).

Double-Click

Cell

Trigger a response.

Row button

Trigger a response.

Column heading

Trigger a response.

any

 

Scroll Bars

Normal scrolling; current cell position is not changed.

Cell being edited

Normal positioning and selection of text, as with entry fields.

 

Also see Response Statements, for more information on the exact responses triggered.