I am pretty sure I understand what is happening, but I wanted to hear it from the experts.
I have a button inside another window. Both the button and the parent window have Window::EventMouseClick handlers.
I end up disabling that button. Now when I click on the button the parent's EventMouseClick handler is called.
Is there a way to prevent this from happening? I still want the button to catch the click event inside it's area and not transfer it to the parent window while disabled.
If the button is enabled, it blocks the click event from going to the parent. However, it looks like windows don't get any events at all if they are disabled.
My current work around idea is to put a DefaultWindow at the exact same location as the button and have it catch the click events when the button is disabled. Has anyone else had an issue with this? Any better work-around ideas?
Thanks.
Code: Select all
24/07/2014 16:36:00 (Std) ---- Version: 0.8.3 (Build: May 12 2014 Debug Microsoft Windows MSVC++ Great Scott! 32 bit) ----
24/07/2014 16:36:00 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
24/07/2014 16:36:00 (Std) ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
24/07/2014 16:36:00 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
24/07/2014 16:36:00 (Std) ---- Scripting module is: None ----