Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » How to set the color of a row
Re: How to set the color of a row [message #7728 is a reply to message #7727] |
Wed, 17 January 2007 12:28 |
|
forlano wrote on Wed, 17 January 2007 06:06 |
unodgs wrote on Tue, 16 January 2007 22:29 |
GridCtrl:
grid.GetRow(22).Bg(Red);
|
I've used it at runtime, not in the constructor, and I discovered that was necessary to add the instruction grid.Repaint() to see the new color. I guess this is normal.
Luigi
|
I think it has to be change. Bg and similar functions should refresh the grid. Calling Repaint is not optimal as it recalculate rows/columns (if needed) positions and repaint the whole content.
I used Bg mainly in callbacks where calling refresh is not necessary as outer functions that call callbacks do this.
Anyway it will be fixed before final release.
PS: It's better to call RefreshRow(int n) instead of Repaint
|
|
|
Goto Forum:
Current Time: Sat May 04 04:44:36 CEST 2024
Total time taken to generate the page: 0.02368 seconds
|