Forum Discussion

tristaanogre's avatar
tristaanogre
Esteemed Contributor
8 years ago

Getting the actual picture from the CellPicture property of an MSFlexGrid

OK... here's a puzzler... 

I have an MSFlexGrid that I need to check to see if a particular cell of the grid has a particular picture.  I have no problem setting the grid up using Col, Rol, ColSel, and RowCel properties to set the current cell to be the one that I want.  The problem is that the CellPicture property then returns just the handle to the image itself without actually returning the image.

 

Does anyone with better expertise in dealing with MSFlexGrid controls know how to extract that image for comparison to a baseline picture?

 

For now, we are just checking to make sure the contents of the cell are non-zero, verifying that an image is present.  But, obviously, we want to make sure it  is the CORRECT image.  So... it's not super urgent at the moment, but whenever anyone has a moment.

If you give a code example, I'd appreciated it in JavaScript.

 

Thanks so much!

3 Replies