BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: How to get rid of flick from derived TStringGrid class ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Hans Galema
Guest





PostPosted: Wed Dec 17, 2003 5:31 am    Post subject: Re: How to get rid of flick from derived TStringGrid class ? Reply with quote



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.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.