Board index » cppbuilder » checkbox in StringGrid

checkbox in StringGrid


2004-12-06 10:41:21 PM
cppbuilder99
Hello:
How to add and manipulate checkboxes in a StringGrid?
Thanks,
Sudesh
 
 

Re:checkbox in StringGrid

Sudesh wrote:
Quote
How to add and manipulate checkboxes in a StringGrid?
That has been covered before, You should be able to find a big thread
if you google for that.
If not come back.
Hans.
 

Re:checkbox in StringGrid

"Sudesh" < XXXX@XXXXX.COM >wrote in message
Quote
How to add and manipulate checkboxes in a StringGrid?
The best way is to use the OnDrawCell event and the Win32 API
DrawFrameControl() function. Use the grid's Objects property to store
per-cell information about the checked state of each cell so that the
OnDrawCell event knows how to draw each cell appropriately. Use the
OnMouse... events to manipulate the cell information that is stored in the
Objects property as needed.
Gambit
 

{smallsort}