"setResizeEnabled"
Prevents columns to be resized or allows changing the size of all columns.
Synopsis
shape.setResizeEnabled(bool enabled, int column =-1);
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
enabled |
FALSE = The columns cannot be resized. TRUE = All columns can be resized. |
column | If this value is negative (default = -1) then the enable value is set for all existing columns and will be applied to any new columns that are added. |
Description
Prevents columns to be resized or allows changing the size of all columns.
Example
main()
{
this.setResizeEnabled(FALSE,-1);
//no columns can be resized via mouse
this.setResizeEnabled(TRUE,-1);
//all columns can be resized via mouse
}
Assignment
Tree widget