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 

How to invalidate just one cell of a drawgrid.

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





PostPosted: Mon Jan 26, 2004 8:50 pm    Post subject: How to invalidate just one cell of a drawgrid. Reply with quote



Does anyone know how to invalidate only one cell of a drawgrid. Right now I
have to call Invalidate(); which causes some delay as all of the cells need
to be redrawn instead of just the one that needs updating.


Thanks,

Kevin


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Jan 26, 2004 9:07 pm    Post subject: Re: How to invalidate just one cell of a drawgrid. Reply with quote




"Kevin" <didnotinclude (AT) void (DOT) ca> wrote

Quote:
Does anyone know how to invalidate only one cell of a drawgrid.
Right now I have to call Invalidate(); which causes some delay as
all of the cells need to be redrawn instead of just the one that needs
updating.

There is no means of doing that with the VCL natively. You will need to
call the Win32 API InvalidateRect() function directly, ie:

RECT r = DrawGrid1->CellRect(Col, Row);
::InvalidateRect(DrawGrid1->Handle, &r, TRUE);


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.