Hans Galema Guest
|
Posted: Wed Dec 17, 2003 5:31 am Post subject: Re: How to get rid of flick from derived TStringGrid class ? |
|
|
Mars wrote:
| Quote: | void __fastcall TStringGridBS::DrawCell(int ACol, int ARow, const
Types::TRect &ARect, TGridDrawState AState)
{
// call parent class draw cell function
TStringGrid::DrawCell(ACol, ARow, ARect, AState);
|
Why were you calling that function? Remove it temporally and see if this
is the cause of the flicker.
| Quote: | case 0: //draw the first row
|
That is a confusing comment. You are not drwawing here, only setting
attributes that will be used later.
| Quote: | if (this->OnDrawCell)
{
this->OnDrawCell(this, ACol, ARow, ARect, AState);
|
Why did you call that eventhandler ? Please remove temporally to see if it
causes flicker.
Hans.
|
|