LinesPerPage
property for PowerScript controls
Applies to
User objects and windows
Description
The LinesPerPage property determines the number of lines on a page
for scrolling purposes. PowerBuilder multiplies Units Per Line by Lines
Per Page to determine the number of PowerBuilder units to scroll the
window vertically when the user clicks in the scroll bar.
For information on calculating LinesPerPage and UnitsPerLine, see
Scrolling in windows and user
objects.
To control the horizontal scroll bar in a window or user object, use
the UnitsPerColumn and ColumnsPerPage properties.
Usage
In a painter
To set the LinesPerPage property:
-
Enter the desired number (between 1 and 100) in the Lines Per
Page option on the Scroll tab page of the window’s Properties
view.
In scripts
The LinesPerPage property takes an integer value between 1 and 100.
The following line sets LinesPerPage for a window to 20:
|
1 |
This.LinesPerPage = 20 |