Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter EighteenDataView Integration (continued)

on_edit_size_request

Overview

The on_edit_size_request event handler is called just prior to the on-sheet cell text edit and allows the script to specify a field size limit for that specific cell.

Syntax/Parameters

Syntax

int on_edit_size_request ( int row, int column, string name ) { ... }

Parameters

row

An int that specifies the row of the cell.

column

An int that specifies the column of the cell.

name

A string containing the name of the cell. If the cell is not named, the string will be empty.

Return Value

Returns an int containing the maximum number of characters allowed in the field, if processed. Returning 0 or any formatted error code will result in the field size being ignored.

Remarks

The on_edit_size_request event will only have a display impact if the title of the cell is set and contains formatted numeric positions. See the on_edit_title_request event.

The specified size does not prevent the user from entering too much data. It will, however, warn of overflow.

Related Events