Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl speedy writes cause crashing...why?
Next Topic: GridCtrl: master detail interactions
Goto Forum:
  


Current Time: Sat May 04 04:44:36 CEST 2024

Total time taken to generate the page: 0.02368 seconds