Jump to content

how to check on DrawColumnCell mouse over


Freeman35

Recommended Posts

Hello,
I'm change background color on DrawColumnCell even

if Pos(string(Column.FieldName),'F_1;F_2;F_3')>0then begin
   Attribs.Color:= clYellow;
  end;

This code override, if move mouse on grid. uniDBGrid hasRowselect:= True; When mouse move on rows, mouse over paint rowselect grayed, But if I changed backgroud' some column, thats backgrounds, not paint via mouse over color. How to do this?

Regards.

Link to comment
Share on other sites

First two colums from left has a DrawColumnCell and changed backround color (sorry for bad selected color :) )

on screenshot, "1-Selected" mouseclicked & grid selected that row. you can see colorof column after third and other. nearly blue color :) . I wanna paint first & second column with selected color too.

"2-Mouse on this row" You can see background color little bit dark gray then normal background color, so flicker when mouse move on rows. But on first and second cell background not change. I wana apply this two efect color on selected & onmouse over flicker efect.

I do not want overide onDrawColumnCell this. I need control on this two parameter (selected & mouser over) so discard my change color code.

I hope this time can translate :)

Sorry for english.

post-4508-0-41245900-1510915709_thumb.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...