scrollHorzPos

Type: Integer

Availability: Read or write at any time

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

The value of the scrollHorzPos property must be less than the width of the leftColumn column. (The leftColumn property value applies to the first cell to the right of the fixed columns, regardless of how much of that cell is on view.)

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

// Enable scrolling by pixel for a sheet
table1.accessSheet(2).scrollMode := Table.ScrollMode_Both_Pixel;
// Select a column as the ′left′ column of the sheet
table1.sheet := 2;
table1.leftColumn := 5;
// Scroll the selected column
table1.accessSheet(2).scrollHorzPos := 10;