 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kevin Guest
|
Posted: Mon Jan 26, 2004 8:50 pm Post subject: How to invalidate just one cell of a drawgrid. |
|
|
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
|
Posted: Mon Jan 26, 2004 9:07 pm Post subject: Re: How to invalidate just one cell of a drawgrid. |
|
|
"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 |
|
 |
|
|
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
|
|