U++ framework
Do not panic. Ask here before giving up.

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: 1367
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: Tue Apr 28 14:42:41 GMT+2 2026

Total time taken to generate the page: 0.00555 seconds