Subject | Re: [IBO] tib_grid title color for sorted column |
---|---|
Author | stanw1950 |
Post date | 2002-01-18T22:42:42Z |
Geoff, thanks. The code sort of works but I have 12 columns
displaying in the grid and only 7 of them are sortable. When I click
on a sortable column title, a different column title color turns
green (and sometimes none turn green). In other words, the wrong
title turns green or no title turns green. What are your assumptions
for the code? Thanks.
Stan Walker
displaying in the grid and only 7 of them are sortable. When I click
on a sortable column title, a different column title color turns
green (and sometimes none turn green). In other words, the wrong
title turns green or no title turns green. What are your assumptions
for the code? Thanks.
Stan Walker
--- In IBObjects@y..., Geoff Worboys <geoff@t...> wrote:
> > In a tib_grid, I want to only color the title rectangle and not
the
> > whole column for the column that is sorted.
>
> This code works...
>
> if (ARow < IB_Grid.FixedRows) and (ACol >= IB_Grid.FixedCols) and
> (IB_Query.OrderingItemNo <> 0) and
> (IB_Grid.DataCol[ACol] = IB_Query.OrderingField.FieldNo) then
> AColor := clLime;
>
>
> hth
>
> --
> Geoff Worboys
> Telesis Computing