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 » Gridctrl and colors
Gridctrl and colors [message #21588] Thu, 28 May 2009 15:33 Go to next message
whiteman is currently offline  whiteman
Messages: 11
Registered: May 2009
Promising Member
Hi, I've see that are many topic with this argument, but I don't understand them! I've started to use u++ few time ago.
I see on the documentation that's easy change the bg color of a gridctrl row, but how I must do for change bg only for a cell?
thanks!
Marco
Re: Gridctrl and colors [message #21732 is a reply to message #21588] Tue, 02 June 2009 22:02 Go to previous messageGo to next message
whiteman is currently offline  whiteman
Messages: 11
Registered: May 2009
Promising Member
Nobody can help me? I Tried with ArrayCtrl and is more simple, with GridCtrl I don't understand.
Thanks Again
Re: Gridctrl and colors [message #21733 is a reply to message #21732] Tue, 02 June 2009 22:31 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

grid.Set(0, 0, AttrText("cell").Paper(Red));
Re: Gridctrl and colors [message #21742 is a reply to message #21733] Wed, 03 June 2009 13:06 Go to previous messageGo to next message
whiteman is currently offline  whiteman
Messages: 11
Registered: May 2009
Promising Member
Thank you very much! this solution is not in the documentation page or in examples, but "Paper" is not a so intuitive like "BackGround".
Why in the arrayctrl is possible set display in the cell and in the gridctrl not?
Re: Gridctrl and colors [message #21743 is a reply to message #21588] Wed, 03 June 2009 13:30 Go to previous messageGo to next message
whiteman is currently offline  whiteman
Messages: 11
Registered: May 2009
Promising Member
That's work! thanks!
But there is another problem: every time that i'm doing an update of a cell I lost the BG
Re: Gridctrl and colors [message #21746 is a reply to message #21743] Wed, 03 June 2009 15:20 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

whiteman wrote on Wed, 03 June 2009 07:30

That's work! thanks!
But there is another problem: every time that i'm doing an update of a cell I lost the BG

that must be a bug. I'll take a look at it.
AttrText was used because ArrayCtrl uses it and I wanted to be compatibile.
There is also possible to set display for particular cell. I only must make this feature public.
I'll apply those chcnages ASAP.
Re: Gridctrl and colors [message #21750 is a reply to message #21588] Wed, 03 June 2009 16:55 Go to previous message
whiteman is currently offline  whiteman
Messages: 11
Registered: May 2009
Promising Member
Ok, I update the cell in this way, maybe is my fault.

mgrd_Grid.Set(0, 0, value);


There is another way to update the cell value? ù

thanks
Previous Topic: GridCtrl: Sorting and Converters
Next Topic: DropGrid problem in 1254?
Goto Forum:
  


Current Time: Mon Apr 29 07:35:51 CEST 2024

Total time taken to generate the page: 0.02632 seconds