IGUIEditBox not working well with parent

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
XenoZergNid
Posts: 17
Joined: Sun Oct 13, 2013 1:52 am

IGUIEditBox not working well with parent

Post by XenoZergNid »

I have a custom toolbar class with children tools, and within those tools are GUI elements. It's all been going well(buttons and check boxes are working as expected) but when I want to use an IGUIEditBox it won't work(it draws but won't interact when clicked on). But it will work if I leave it without a parent.

I'm pretty sure its not my code because IGUIButton works in the same class.

also looking at IGUIButton and IGUIEditBox:

CGUIButtons return for OnEvent()

Code: Select all

return Parent ? Parent->OnEvent(event) : false;
and CGUIEditBoxes:

Code: Select all

return IGUIElement::OnEvent(event);
could this be the problem?
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Re: IGUIEditBox not working well with parent

Post by Seven »

can you create a small test program that shows the issue and post it here? just take one of the examples and add the trouble you are having, then we can help.
XenoZergNid
Posts: 17
Joined: Sun Oct 13, 2013 1:52 am

Re: IGUIEditBox not working well with parent

Post by XenoZergNid »

well, the moral of the story is to try to reproduce the problem before posting on the forum because it revealed the problem... :roll:

I didn't call

Code: Select all

return IGUIElement::OnEvent(event);
on the classes parent.

I guess I'll do that next time before posting on the forums.
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Re: IGUIEditBox not working well with parent

Post by Seven »

no worries mate, glad I could help :)
Post Reply