Code: Select all
CEGUI::Scrollbar* sb = (CEGUI::Scrollbar*)CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/HorizontalScrollbar", (CEGUI::utf8*)"Vert Scroll 1");
mEditorGuiSheet->addChildWindow(sb);
sb->setPosition(CEGUI::Point(0.40f, 0.95f));
sb->setMinimumSize(CEGUI::Size(0.01f, 0.01f));
sb->setMaximumSize(CEGUI::Size(0.6f, 0.6f));
sb->setSize(CEGUI::Size(0.8f, 0.015f));
sb->setDocumentSize(360);
sb->setPageSize(35);
sb->setStepSize(1);
sb->setAlwaysOnTop(true);
and this another didn't
Code: Select all
CEGUI::StaticText* label = (CEGUI::StaticText*)CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/StaticText", (CEGUI::utf8*)"Label1");
mEditorGuiSheet->addChildWindow(label);
label->setFrameEnabled(false);
label->setBackgroundEnabled(false);
label->setPosition(CEGUI::Point(0.02f, 0.2f));
label->setSize(CEGUI::Size(0.2f, 0.12f));
label->setText((CEGUI::utf8*)"ID Code:");
is it not the correct way to draw it out of a cegui-window , or it is not possible?