Windows and user objects
The ColumnsPerPage property determines the number of columns on a page for scrolling purposes. The default is 0 (10 columns per page). PowerBuilder multiplies UnitsPerColumn by ColumnsPerPage to determine the number of PowerBuilder units to scroll the window horizontally when the user clicks in the scroll bar.
For information on calculating ColumnsPerPage and UnitsPerColumn, see “Scrolling in windows and user objects”.
Usage note To control the vertical scroll bar in a window or user object, use the UnitsPerLine and LinesPerPage properties.
To set the ColumnsPerPage property:
Enter the desired number (between 1 and 100) in the ColumnsPerPage option on the Scroll tab page of the window’s Properties view.
The ColumnsPerPage property takes an integer value between 1 and 100. The following line sets ColumnsPerPage for a window to 20:
This.ColumnsPerPage = 20