piResizeColumn - Grid
Determines if column is to be resized when peResizeColumn is set to rcSelectedColumn
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer piResizeColumn
| Access Type | Syntax |
|---|---|
| Read Access: | Get piResizeColumn to IntegerVariable |
| Write Access: | Set piResizeColumn to IntegerVariable/Value |
Description
If the mode property peResizeColumn is set to rcSelectedColumn, the column to be resized is determined by the value in piResizeColumn. Columns are zero based; therefore setting peResizeColumn to 0 causes the first column to be resized. If peResizeColumn is set to any value other than rcSelectedColumn, the property is ignored.
In the following example, the column to be automatically resized is selected by clicking the column's header (Clicking on a grid column header sends the message Header_mouse_click).
Procedure Header_Mouse_Click Integer iColumn
Set peResizeColumn to rcSelectedColumn // make sure mode is correct
Set piResizeColumn to iColumn // this is the column to resize
End_Procedure
Default is 0.