Subject | Re: [IBO] OnDrawCell handler |
---|---|
Author | Tomas MichalĂk |
Post date | 2000-11-29T10:48:13Z |
Hi,
lester@... wrote:
Best regards,
Tom
=================================
Tomas Michalik
ProCA, s. r. o.
V Luzich 818, Praha 4
Czech Republic
e-mail: michalik@...
tel: +420 2 67283446
lester@... wrote:
>Yes, it works, thank you.
> 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
> }
> }
> }
> }
> }
Best regards,
Tom
=================================
Tomas Michalik
ProCA, s. r. o.
V Luzich 818, Praha 4
Czech Republic
e-mail: michalik@...
tel: +420 2 67283446