invisble and disabled iwindow flickers

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Alex001
Posts: 25
Joined: Tue Dec 02, 2003 8:20 pm
Location: Germany, Munich

invisble and disabled iwindow flickers

Post by Alex001 »

Hi all,

I have a strange problem with a window containing 4 buttons.
I use that window instead of a menu. During rendering my scenes I set the window to visible(false) and enabled(false). But if I press the left mouse button it flickers. I do not understand why a disabled window is receiving mouse events and why it flickers if I set it to invisible.
So there are 2 possiblities:
- I misunderstood the decumentaion
- or its an irrlicht bug

I could not found a possibility to tell the window NOT to receive mouse inputs.

Did anybody know this problem or found a similar problem ?

Thanks for hints.
Alex

:D
Any fool can make things bigger, more complex, and more violent. It takes a touch of genius-and a lot of courage-to move in the opposite direction.
(Albert Einstein)
DaChief
Posts: 45
Joined: Tue Nov 01, 2005 9:02 am
Location: Switzerland

Post by DaChief »

Hmm... maybe a bit too simple.. but i try it anyway:

in the "addWindow"-Method there is a parameter called "bool modal".. set it to false... maybe it works...

alternatively you can disable guienv->drawAll() while the scenes are rendering

you could also set the parents of the Elements to the guiRoot (guienv->getRootGUIElement())

or much simpler... place the window out the screen and when you want to use it, place it back ^^
IrrLicht v0.14
Audiere Sounds-API v1.9.3
Current Project: KoulesXD
Post Reply