
This method calculates the minimum required width of a column to ensure the entire text will appear.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_ListView_CalcColWidth MyControlReference [as Reference] sColText [as String]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_ListView_CalcColWidth ProjectFile [as String] DialogName [as String] ControlName [as String] sColText [as String]) |
Copy Code |
|---|
; Calculate the width to assign to a column (setq rValue (Odcl_ListView_CalcColWidth MyProject_MyForm_MyControl "Phone Number")) |
ListView_AddColumns, ListView_DeleteColumn, ListView_DeleteColumns, ListView_GetColumnCount, ListView_GetColumnImage, ListView_GetColumnItems, ListView_GetColWidth, ListView_SetColumnImage, ListView_SetColWidth, ListView_SortNumericItems, ListView_SortTextItems