Static text

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
pabloa
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Mon Oct 03, 2005 09:52

Static text

Postby pabloa » Thu Nov 03, 2005 15:49

why this code run me

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?

Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests