SetColumnWidthToWidestCellContents
int SetColumnWidthToWidestCellContents (int panelHandle, int controlID, int columnIndex);
Purpose
Sets the width of the specified tree or table column to the width of the column's widest cell contents.
Parameters
Input |
Name |
Type |
Description |
panelHandle |
integer |
Specifier for a particular panel that is currently in memory. You obtain this
handle from LoadPanel, NewPanel, or DuplicatePanel. |
controlID |
integer |
The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by NewCtrl or DuplicateCtrl. |
columnIndex |
integer |
Index of the column for which you want to set the width. It is zero-based for a tree and one-based for a table.
|
Return Value
Name |
Type |
Description |
width |
integer |
Returns the resulting width of the specified column. Negative values indicate that an error occurred.
Code |
Error Message String |
xx |
Column Width (Success) |
|