Hi All!
I'm trying to draw an subitem in the selected state.
if (cdsSelected in state)or(cdsFocused in state) then
begin
Sender.canvas.Brush.Color:=clHighlight;
Sender.canvas.Font.Color:=clHighlightText;
end;
aRect:=Item.DisplayRectSubItem( SubItem,drBounds);
Sender.canvas.FillRect(aRect);
DefaultDraw:=false;
When I select a row drawn all right, but if move mouse to my selected subitem and stop it for a split second. Ceases to be an element of the selection. Please tell me how.
Example and screen attached