Posted 8 September 2017, 12:52 pm ESTHi,
If I make a custom cell type and override PaintCell( ) and IsReservedLocation( ) am I correct in that the rectangles passed to these methods will be different? In PaintCell I seem to get the rectangle inside the border, and in IsReservedLocation( ) I get the rectangle of the entire cell including the border?
For example: If I paint a control (say, a checkbox) in Paint( ) at x,y=0,0 and then need to know wether the user has clicked on it in IsReservedLocation( ) then the checkbox will have slightly different coordinates depending on the border width? In that case I will need to know the border width, but that is not part of the appearance.
Thanks for any advice