I'm putting together a small application using Ogre and CEGUI and would like to make my static text scroll back to the top with C++ code.
Both ways I've tried throw CEGUI::UnknownObjectException
Code: Select all
descriptionArea->setText(ss.str());
CEGUI::ScrollablePane* desc = (CEGUI::ScrollablePane*)&descriptionArea;
// first way i tried it
desc->setVerticalScrollPosition(0.f);
// second way i tried it
descriptionArea->getProperty("VertScrollPosition");
descriptionArea->setProperty("VertScrollPosition", "[0]");