leftColumn

Type: Integer

Availability: Read or write at run time

The leftColumn property contains the column that is displayed at the left edge of the non-fixed area of the current sheet of a Table control. This value may be decreased automatically by the control if lower values can still display the remainder of the columns.

The leftColumn property has no meaning if the display does not require a scroll bar.

Changing the row or column property does not change the rows or columns that are displayed, as these are changed only by the leftColumn and topRow properties.

The following example shows the use of the leftColumn property.

convertPositionToColumn(xPos: Real): Integer updating;
// Return the table column whose left and width positions cover the
// x coordinate passed
vars
    originalColumn : Integer;
    ix             : Integer;
begin
    originalColumn := theTable.column;
    ix := theTable.leftColumn;
    while ix <= theTable.columns do
        theTable.column := ix;
        if theTable.positionLeft <= xPos then
            if xPos <= (theTable.positionLeft +
                        theTable.columnWidth[ix]) then
                theTable.column := originalColumn;
                return(ix);
            endif;
        endif;
        ix := ix + 1;
    endwhile;
    theTable.column := originalColumn;
    return(0);
end;