Arbortext Command Language > Functions by Alphabetical Listing > window_set_columnview
  
window_set_columnview
window_set_columnview(window, colnamesArr, colwidthArr)
This function enables you to set the Column view settings for a window view.
The window parameter is the window view for which Column view settings are being set, or zero to indicate that the current view should be used.
The colnamesArr parameter is an array of the column names for all columns defined in the .dcf file for the document type. The order of the entries in the array represents the order in which the columns should be displayed. The first or Outline column is not included in the array, since it cannot be reordered and it never scrolls.
The colwidthArr parameter is an array parallel to colnamesArr that indicates the column width and whether each column should be displayed. Positive values indicate that the column should be displayed and gives the width of the column in pixels. Negative values indicate that the column should not be displayed and the default width of the column if it were showing. A value of zero indicates there should be no change to the status or width of that particular column, but its order may have changed. Valid widths are between 10 and 1200 pixels. Widths outside of that range are ignored.
The special column name, *ScrollBoundary*, is used to position the scroll boundary. Columns that come before the scroll boundary do not scroll horizontally and columns that come after the scroll boundary do scroll. Only one scroll boundary can be present. If a scroll boundary is not present, then only the Outline column is not scrolled.
The function returns 1 for success and 0 for failure.
Related Topics
window_get_columnview function