UnitsPerLine

Applies to

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.

Usage note

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

Usage

In a painter

To set the UnitsPerLine property:

  • 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:

lb_1.UnitsPerLine = 17