Subject Re: [IBO] OnDrawCell handler
Author Tomas MichalĂ­k
Hi,

lester@... wrote:
>
> This is C++ but you should get the idea
>
> { if ( !ACol || !ARow ) return; // Ignore Top and Left
> if( DataList && DataList->Active ) // Check database is open
> { int BufferRowNum = Grid->DataRow[ ARow ];
> // Get buffer row attached to this grid row
> { if ( BufferRowNum > 0 )
> { DataList->BufferRowNum = BufferRowNum; // Select same row in
> database
>
> int delay = DataList->BufferFieldByName("DELAY")->AsInteger;
> // Read data from buffer rather than database
> if ( delay < -9 )
> AColor = TColor(0x00ff7f7f);
> // I am chnaging the colour of the backgrond rather than text
> }
> }
> }
> }
> }

Yes, it works, thank you.

Best regards,
Tom

=================================

Tomas Michalik
ProCA, s. r. o.
V Luzich 818, Praha 4
Czech Republic

e-mail: michalik@...
tel: +420 2 67283446