Arbortext Command Language > Callbacks > doc_add_callback > tbl_obj_attr_modifiable Callback Type
  
tbl_obj_attr_modifiable Callback Type
Function prototype:
function funcname (doc, target, attr)
tbl_obj_attr_modifiable is called by the table editor user interface to ask permission to modify a table object attribute.
Arguments
doc is the identifier of the document containing target.
target is the table object ID (toid) of the table object whose attribute is to be modified.
attr is the name of the attribute to be modified. This callback only supports two attributes: TARGET_HEIGHT (rows) and COLWIDTH (columns).
Returns
tbl_obj_attr_modifiable may return:
0: modification is permitted
-1: modification is forbidden
A return of –1 restricts modification by the row and column rulers, and also by the Table Properties dialog box. However, this callback does not let you restrict changes to the TARGET_HEIGHT and COLWIDTH attributes in other ways, such as using a direct ACL function call. It also does not let you restrict changes to other attributes.
* 
If the set tablecolumnresizable option is set to off, columns cannot be resized even if the tbl_obj_attr_modifiable callback allows modification.
This callback does not let you forbid changes to these attributes in other ways, for example, by a direct ACL function call.