SHARE
TWEET

Untitled

a guest Aug 11th, 2011 641 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   CEGUI::WindowManager::getSingleton().getWindow("CheckboxDisabled")->disable();
  2.   CEGUI::WindowManager::getSingleton().getWindow("RadiobuttonDisabled")->disable();
  3.   CEGUI::WindowManager::getSingleton().getWindow("IconbuttonDisabled")->disable();
  4.   CEGUI::WindowManager::getSingleton().getWindow("ButtonDisabled")->disable();
  5.   CEGUI::WindowManager::getSingleton().getWindow("EditboxDisabled")->disable();
  6.   CEGUI::WindowManager::getSingleton().getWindow("MultilineEditboxDisabled")->disable();
  7.   CEGUI::WindowManager::getSingleton().getWindow("ComboboxDisabled")->disable();
  8.   CEGUI::WindowManager::getSingleton().getWindow("ProgressbarDisabled")->disable();
  9.   CEGUI::MultiLineEditbox* editbox = (CEGUI::MultiLineEditbox*)CEGUI::WindowManager::getSingleton().getWindow("MultilineEditboxActive");
  10.   editbox->setWordWrapping(false);
  11.   editbox = (CEGUI::MultiLineEditbox*)CEGUI::WindowManager::getSingleton().getWindow("MultilineEditboxActive");
  12.   editbox->setWordWrapping(false);
  13.   CEGUI::Menubar* menu = (CEGUI::Menubar*)CEGUI::WindowManager::getSingleton().getWindow("Menubar");
  14.   CEGUI::MenuItem* menufile = (CEGUI::MenuItem*)CEGUI::WindowManager::getSingleton().createWindow("Sunrise/MenuItem", "MenuFile");
  15.   menufile->setText("Item1");
  16.   menu->addChildWindow(menufile);
  17.   CEGUI::PopupMenu* pop1 = (CEGUI::PopupMenu*)CEGUI::WindowManager::getSingleton().createWindow("Sunrise/PopupMenu", "Pop1");
  18.   pop1->setText("Item2");
  19.   menufile->addChildWindow(pop1);
  20.   CEGUI::MenuItem* itemtest = (CEGUI::MenuItem*)CEGUI::WindowManager::getSingleton().createWindow("Sunrise/MenuItem", "MenuTest");
  21.   itemtest->setText("Item3");
  22.   pop1->addChildWindow(itemtest);
  23.   CEGUI::PopupMenu* pop2 = (CEGUI::PopupMenu*)CEGUI::WindowManager::getSingleton().createWindow("Sunrise/PopupMenu", "Pop2");
  24.   pop2->setText("Item4");
  25.   itemtest->addChildWindow(pop2);
  26.   CEGUI::MenuItem* item3 = (CEGUI::MenuItem*)CEGUI::WindowManager::getSingleton().createWindow("Sunrise/MenuItem", "item");
  27.   item3->setText("Item5");
  28.   pop2->addChildWindow(item3);
  29.   CEGUI::MultiColumnList* multilist = (CEGUI::MultiColumnList*)CEGUI::WindowManager::getSingleton().getWindow("MultiColumnList");
  30.   multilist->setSelectionMode(CEGUI::MultiColumnList::SelectionMode::CellSingle);
  31.   multilist->addColumn("Column 1", 0, CEGUI::UDim(0.25f,0.0));
  32.   multilist->addColumn("Column 2", 1, CEGUI::UDim(0.25f,0.0));
  33.   multilist->addColumn("Column 3", 2, CEGUI::UDim(0.25f,0.0));
  34.   multilist->addColumn("Column 4", 3, CEGUI::UDim(0.2499f,0.0));
  35.   CEGUI::uint row = multilist->addRow();
  36.   CEGUI::SkinnedListboxItem* mclitem1 = new CEGUI::SkinnedListboxItem("Item 1");
  37.   multilist->setItem(mclitem1, 0, row);
  38.   CEGUI::SkinnedListboxItem* mclitem2 = new CEGUI::SkinnedListboxItem("Item 2");
  39.   multilist->setItem(mclitem2, 1, row);
  40.   CEGUI::SkinnedListboxItem* mclitem3 = new CEGUI::SkinnedListboxItem("Item 3");
  41.   multilist->setItem(mclitem3, 2, row);
  42.   CEGUI::SkinnedListboxItem* mclitem4 = new CEGUI::SkinnedListboxItem("Item 4");
  43.   multilist->setItem(mclitem4, 3, row);
  44.   multilist->setShowHorzScrollbar(true);
  45.   multilist->setShowVertScrollbar(true);
  46.   CEGUI::ItemListbox* itemlistbox = (CEGUI::ItemListbox*)CEGUI::WindowManager::getSingleton().getWindow("ItemListbox");
  47.   CEGUI::ItemEntry* itementry1 = (CEGUI::ItemEntry*)CEGUI::WindowManager::getSingleton().createWindow("Sunrise/ListboxItem", "itementry1");
  48.   itementry1->setText("Itementry 1");
  49.   CEGUI::ItemEntry* itementry2 = (CEGUI::ItemEntry*)CEGUI::WindowManager::getSingleton().createWindow("Sunrise/ListboxItem", "itementry2");
  50.   itementry2->setText("Itementry 2");
  51.   itementry2->disable();
  52.   itementry2->select();
  53.   itemlistbox->addItem(itementry1);
  54.   itemlistbox->addItem(itementry2);
  55.   CEGUI::Combobox* combo = (CEGUI::Combobox*)CEGUI::WindowManager::getSingleton().getWindow("ComboboxActive");
  56.   CEGUI::SkinnedListboxItem* itema = new CEGUI::SkinnedListboxItem("Item 1");
  57.   CEGUI::SkinnedListboxItem* itemb = new CEGUI::SkinnedListboxItem("Item 2");
  58.   CEGUI::SkinnedListboxItem* itemc = new CEGUI::SkinnedListboxItem("Item 3");
  59.   CEGUI::SkinnedListboxItem* itemd = new CEGUI::SkinnedListboxItem("Item 4");
  60.   combo->addItem(itema);
  61.   combo->addItem(itemb);
  62.   itemb->setDisabled(true);
  63.   combo->addItem(itemc);
  64.   combo->addItem(itemd);
  65.   CEGUI::Imageset& imageset = CEGUI::ImagesetManager::getSingleton().createFromImageFile("SplashImage", "splash.png", "gui");
  66.   CEGUI::WindowManager::getSingleton().getWindow("StaticImage")->setProperty("Image", "set:SplashImage image:full_image");
  67.   CEGUI::Window* text = CEGUI::WindowManager::getSingleton().getWindow("StaticText");
  68.   text->setProperty("HorzFormatting", "WordWrapLeftAligned");
  69.   text->setProperty("VertScrollbar", "True");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top