Hi Everyone!
I've got a quite complex problem (afaik):
I'm trying to create an extension that takes use of GUI of the Irrlicht Engine.
I've got the child window, and render working so far, but i've got a pretty wierd problem:
Render and everything works good, no problem, but the GUI buttons does not seems to be pressable, only if i rappidly click on the button.
In the code i have:
HandleRunObject() :
.. and in DisplayRunObject(), which gets called if i return REFLAG_DISPLAY in HandleRunObject() :Code:if(rdPtr->device->run()) return REFLAG_DISPLAY; else return 0;
Code:rdPtr->driver->beginScene(true,true,SColor(0,128,0,0)); rdPtr->gui->drawAll(); rdPtr->driver->endScene(reinterpret_cast<irr::s32>(rdPtr->irrWind));
--
The wierdest thing is, if i set a while statement instead of an if statement, everything works fine, except from that it will end with an infinite loop.
--
Some more info:
The irrlicht device is pasted into a Win32 Button Window, if you want to see the code for setup that, just tell me.
-Thanks!




Reply With Quote

