ColumnsPerPage property for PowerScript controls
Controls
Windows and user objects
Description
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”.
To control the vertical scroll bar in a window or user object,
use the UnitsPerLine and LinesPerPage properties.
Usage
In a painter
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.
In scripts
The ColumnsPerPage property takes an integer value between
1 and 100. The following line sets ColumnsPerPage for a window to
20:
1 |
This.ColumnsPerPage = 20 |