"selectByClick"

Specifies the selection mode when you click into the table.

Synopsis

setValue(string shape, "selectByClick", int mode);

getValue(string shape, "selectByClick", int &mode);

shape.selectByClick(int mode);

Parameters

Parameter Description
shape Name of the object
mode

Integer constant, selection mode:

TABLE_SELECT_NOTHING: No selection (mode=0)

TABLE_SELECT_LINE: Selects the line (mode=1)

TABLE_SELECT_COLUMN: Selects the column (mode=2)

TABLE_SELECT_LINE_COLUMN: Selects the cell (line+column) (mode=3)

Description

Defines whether a line, column or both is selected when you click into a table (see parameters). The default setting is TABLE_SELECT_NOTHING. This attribute depends on "tableMode". If one or more lines have been selected, you can undo the selection by holding CTRL down and at the same time clicking on the line concerned.

  • Any cell in a table can be edited by clicking on it once.

  • The settings for "selectByClick" are also applied for displaying the hover color.

Example

The following example switches the table to a mode in which individual cells can be selected by clicking.

main()
{
  TABLE1.tableMode(TABLE_SELECT_BROWSE);
  TABLE1.selectByClick(TABLE_SELECT_LINE_COLUMN);
}

Assignment

Table