scroll value
Posted: Fri Apr 14, 2006 09:56
Hi, I am trying to get the scrollvalue, but it always seems to return one, even though its being moved around. I set the value of some static text equal to its value, and it is always 1
Code: Select all
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();
std::stringstream sstr;
sstr<<((CEGUI::Slider*)wmgr.getWindow("slider1"))->getCurrentValue() << " ";
OutputDebugString( sstr.str().c_str() );
((CEGUI::StaticText*)wmgr.getWindow("static1"))->setText( sstr.str() );