How find Column's ListboxItem of MultiColumnList?
Posted: Sun Dec 07, 2008 13:50
My English is very poor
I hope you know my mean
Code:
mrankingbrothers =(CEGUI::MultiColumnList*)cewin->getWindow((CEGUI::utf8*)"BattleRoot/RankingBrothers");
mrankingbrothers->addColumn("Name",0,CEGUI::UDim(0.3f, 0.0f));
mrankingbrothers->addColumn("Score", 1, CEGUI::UDim(0.55f, 0.0f));
mrankingbrothers->setUserColumnSizingEnabled(FALSE);
//addrow...
CEGUI::ListboxItem* nameItem;
int id=0;
string name="abc";
nameItem = new CEGUI::ListboxTextItem(int2str(id));
unsigned int row = mcl->addRow();
mcl->setItem(nameItem, 0, row);
nameItem = new CEGUI::ListboxTextItem(name);
mcl->setItem(nameItem, 1, row); <<-----this nameItem,I want to find
then,How find mcl.row(0,1) ListboxItem*
I don't have find any function for this
Please,Tell me
I hope you know my mean
Code:
mrankingbrothers =(CEGUI::MultiColumnList*)cewin->getWindow((CEGUI::utf8*)"BattleRoot/RankingBrothers");
mrankingbrothers->addColumn("Name",0,CEGUI::UDim(0.3f, 0.0f));
mrankingbrothers->addColumn("Score", 1, CEGUI::UDim(0.55f, 0.0f));
mrankingbrothers->setUserColumnSizingEnabled(FALSE);
//addrow...
CEGUI::ListboxItem* nameItem;
int id=0;
string name="abc";
nameItem = new CEGUI::ListboxTextItem(int2str(id));
unsigned int row = mcl->addRow();
mcl->setItem(nameItem, 0, row);
nameItem = new CEGUI::ListboxTextItem(name);
mcl->setItem(nameItem, 1, row); <<-----this nameItem,I want to find
then,How find mcl.row(0,1) ListboxItem*
I don't have find any function for this
Please,Tell me