Code: Select all
CEGUI::String s;
s=(CEGUI::String)sb->getScrollPosition();
//and some lines after
scrollbar->setText(s);
the error was cant convert 'float' to 'CEGUI::String'
how can I do it and what conversion are allow?
Moderators: CEGUI MVP, CEGUI Team
Code: Select all
CEGUI::String s;
s=(CEGUI::String)sb->getScrollPosition();
//and some lines after
scrollbar->setText(s);
Code: Select all
#include "CEGUIPropertyHelper.h"
CEGUI::String s = CEGUI::PropertyHelper::floatToString(123.456f);
Return to “Modifications / Integrations / Customisations”
Users browsing this forum: No registered users and 2 guests