scrollVertPos

Type: Integer

Availability: Read or write at any time

The scrollVertPos property of the JadeTableSheet class is set to the number of pixels that the current top row (identified by the topRow property of the Table control) is scrolled. The scrollVertPos property is reset to zero (0) when the value of the topRow property is set by logic. To establish a scrolled position by logic, set the value of the topRow property and then that of the scrollVertPos property.

The value of the scrollVertPos property must be less than the height of the topRow column. (The topRow property value applies to the first cell below the fixed rows, regardless of how much of that cell is on view.)

The code fragment in the following example shows the use of the scrollVertPos property.

// Enable scrolling by pixel for this sheet
table1.accessSheet(2).scrollMode := Table.ScrollMode_Both_Pixel;
// Select the top row
table1.sheet := 2;
table1.topRow := 3;
// Scroll the selected row
table1.accessSheet(2).scrollVertPos := 5;