ColumnWidth
Chapter contents
Applies to:
VAList
Description
Set this property to assign tab stops to a multi-column record list implementation of a VAList object. If the VARecordList property is False, this property has no effect.
To assign tab stops to a multi-column record list, take these steps:
- Make sure your list box is wide enough to hold all the column data.
- Set the VARecordList check box to True.
- If you have not already done so, select the columns to be displayed under the VAFieldName property. (To do this, right-click on the list box to access the Property Pages. Click on the ellipses beside VAFieldName and select the columns.)
- In the VAFieldName property of the Property Pages, select the fields you want. You can double-click on an available field (column) to select it. Click OK.
- Still in the Property Pages, click on the ellipses next to the ColumnWidth combo box to open the Multi-Column Tab Settings window. The first field you selected is displayed.
- Double-click to the right of the first field to set the first tab stop. A hashed line appears. Drag this line to provide enough space for the data that will be displayed in this column. Continue double-clicking and dragging these lines until you have displayed and adjusted the tabs for the columns selected. See Figure 6-1.
See Also
Affected by: VARecordList
Figure 6-1 Tab Settings in a Multi-Column List Box
- Click OK in this window and in the Property Pages.