I have a series of checkboxes. The intent is that clicking on one box deselects all the other boxes. We're getting an exception when deselecting. After a fair bit of the usual debugging, we're finding that the exception only happens when using the Checkbox::EventStateChanged event.
Code: Select all
orbARLock->subscribeEvent(CEGUI::FrameWindow::EventMouseClick, CEGUI::Event::Subscriber(&SCOrbWindow::Evt_ARLock, this)); //workaround
orbRALock->subscribeEvent(CEGUI::Checkbox::EventCheckStateChanged, CEGUI::Event::Subscriber(&SCOrbWindow::Evt_RALock, this)); // what it should be
the exception occurs later when calling
Code: Select all
if (orbRALock->isSelected()) orbRALock->setSelected(false);
Does anyone know why this would be? Or am I missing something fundamental? Using the current workaround is a bit of a hack, which I can live with, but would rather know the underlying cause.
Cheers J
(CEGUI version 0.7.5)