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 » U++ Library : Other (not classified elsewhere) » GridCtrl bug?
GridCtrl bug? [message #22972] Thu, 03 September 2009 15:22 Go to next message
darthspawn is currently offline  darthspawn
Messages: 58
Registered: February 2009
Member
In a GridCtrl I've colored a cell with the Paper


mgrd_Grid.Set(r, c, AttrText(value).Paper(LtGray()));



when I do
mgrd_Grid.Get(r, c);


only for the colored cell the returned string is empty
Re: GridCtrl bug? [message #22975 is a reply to message #22972] Thu, 03 September 2009 19:28 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

darthspawn wrote on Thu, 03 September 2009 09:22

In a GridCtrl I've colored a cell with the Paper


mgrd_Grid.Set(r, c, AttrText(value).Paper(LtGray()));



when I do
mgrd_Grid.Get(r, c);


only for the colored cell the returned string is empty

Everything is fine. GridCtrl keeps items as Value type. That means everything is converted to Value inside. You put AttrText into cell and got Value while retrieving. Just do casting to AttrText and read text member:
AttrText v = ValueTo<AttrText>(grid.Get(r, c));
String s = v.text;
Previous Topic: HTTPS?
Next Topic: Play sound
Goto Forum:
  


Current Time: Thu Mar 28 22:43:41 CET 2024

Total time taken to generate the page: 0.01647 seconds