columnVisible

Type: Boolean array

Availability: Read or write at run time only

The columnVisible property enables a column of a Table control to be displayed or hidden, or the visibility status to be obtained. Setting the visible status of a column causes a repaint.

The following example shows the use of the columnVisible property.

tableGroup_dragDrop(groupbox: GroupBox input; win: Window input; x: Real;
                    y: Real) updating;
// If a table column is dropped onto the tableGroup, make it invisible
// and toggle the corresponding menuItem entry
vars
    ix : Integer;
    mi : MenuItem;
begin
    if win.name = 'theTable' then
        theTable.columnVisible[theTable.column] := false;
        ix := 0;
        while ix < theTable.columns do
            mi := mTableColumns.getMenuItem(ix);
            if mi.caption = theTable.text then
                mi.checked := false;
                return;
            endif;
            ix := ix + 1;
        endwhile;
        win.dragMode := 0;
    endif;
end;