Code: Select all
CEGUI::Window *inRows = wmgr.createWindow("TaharezLook/Editbox", "root/inRows");
sheet->addChild(inRows);
inRows->setSize(CEGUI::USize(CEGUI::UDim(0.15, 0), CEGUI::UDim(0.05, 0)));
inRows->setPosition(CEGUI::UVector2(CEGUI::UDim(.05, 0), CEGUI::UDim(.1, 0)));
inRows->setText("");
inRows->setTextParsingEnabled(true);
inRows->subscribeEvent(CEGUI::Window::EventMouseButtonDown, CEGUI::Event::Subscriber
(&TutorialApplication::newRows, this));
inRows->setEnabled(true);
rowRef = inRows; //global reference
and sheet is defined as
Code: Select all
CEGUI::WindowManager &wmgr = CEGUI::WindowManager::getSingleton();
CEGUI::Window *sheet = wmgr.createWindow("DefaultWindow", "root/Sheet");
CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow(sheet);
sheet->setMousePassThroughEnabled(true);
any insight is much appreciated.
note that I am aware the events are set as window events: this was done to test whether input was working. I am also aware I can cast the editbox windows to editboxes and tweak the events and none of this has affected my dilema...