I searched some help and coded that:
Code: Select all
CEGUI::RadioButton* sombra1;
CEGUI::RadioButton* sombra2;
sombra1 = (CEGUI::RadioButton*)CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/RadioButton", "S1");
sombra1->setGroupID(1);
sombra1->setID(101);
sombra1->setSelected(true);
sombra2 = (CEGUI::RadioButton*)CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/RadioButton", "S2");
sombra2->setGroupID(1);
sombra2->setID(102);
sombra2->setSelected(false);
But doesn't work...
How should i create a RadioButton?
Thanks