IGUIButton does not work !

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
aktlakfh1777
Posts: 17
Joined: Sun Dec 21, 2008 1:40 am

IGUIButton does not work !

Post by aktlakfh1777 »

displayed it on screen.
but, it can't push.
what can i do for it?

Code: Select all

			this->irObject->_guienv->clear();
			IGUIButton *igb=this->irObject->_guienv->addButton(rect<s32>(637,475,734,520),0,Login_OK,L"Login",L"ou");// X1,Y1,X2,Y2
			igb->setEnabled(true);
			igb->setDrawBorder(true);
			igb->draw();
psychophoniac
Posts: 101
Joined: Wed Dec 03, 2008 5:33 pm
Location: ger

Post by psychophoniac »

maybe you forget the

Code: Select all

device->run()
you can't push buttons if you dont call this in your main render loop.
i love skateboarding!
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

Post Reply