Home » U++ Library support » U++ Library : Other (not classified elsewhere) » GridCtrl bug?
Re: GridCtrl bug? [message #22975 is a reply to message #22972] |
Thu, 03 September 2009 19:28 |
|
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
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;
|
|
|
Goto Forum:
Current Time: Mon May 13 07:11:02 CEST 2024
Total time taken to generate the page: 0.01679 seconds
|