UnitsPerLine – PB Docs 150

UnitsPerLine property for PowerScript controls

Controls

Windows, user objects

Description

UnitsPerLine specifies the number of PowerBuilder units you
want to scroll up or down when the user clicks the up or down arrow
in the vertical scroll bar in a window or user object. The default
is 0 (1/100 of the window or user object height). When
UnitsPerLine is 0, PowerBuilder controls vertical scrolling automatically.

PowerBuilder multiplies UnitsPerPage by UnitsPerLine to determine
the number of PowerBuilder units to scroll the window or user object
vertically when the user clicks in the scroll bar.

For information on calculating LinesPerPage and UnitsPerLine,
see “Scrolling in windows and
user objects”
.

note.png Usage note

To control horizontal scrolling in a window or user object,
use the UnitsPerColumn and ColumnsPerPage properties.

Usage

In a painter

proc.png To set the UnitsPerLine property:

  1. Enter the desired number of PowerBuilder
    units in the UnitsPerLine field on the Scroll tab page of the window’s
    Properties view.

In scripts

The UnitsPerLine property takes an integer value.

The following statement sets UnitsPerLine to 17, which is
appropriate for a content length of 2400:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x