Hi
I have a stringgrid with names. And when I select a row, I color it with green, so it obvious which one is selected.
What I did now is to color rows when I just hover over the grid with mouse (OnMouseMove)... so if I move mouse up and down, rows are coloring green and back to original color, so the coloring follows the mouse movement. It's like I would move up and down with keyboard and current row is colored.
This works, but is not useful because I use Grid.Refresh or Grid.Repaint and it kind of flashes the whole grid while repaint/refresh.
So, it works, but the flashes are annoying.
Does anybody know how to make it a bit faster? Or maybe how to refresh/repaint just specific row? That way I could paint previous row with original color and current row with green, and not whole grid needs to be refreshed.
Thanx
Tilen
I have a stringgrid with names. And when I select a row, I color it with green, so it obvious which one is selected.
What I did now is to color rows when I just hover over the grid with mouse (OnMouseMove)... so if I move mouse up and down, rows are coloring green and back to original color, so the coloring follows the mouse movement. It's like I would move up and down with keyboard and current row is colored.
This works, but is not useful because I use Grid.Refresh or Grid.Repaint and it kind of flashes the whole grid while repaint/refresh.
So, it works, but the flashes are annoying.
Does anybody know how to make it a bit faster? Or maybe how to refresh/repaint just specific row? That way I could paint previous row with original color and current row with green, and not whole grid needs to be refreshed.
Thanx
Tilen