EditBox isn't enabled

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
lobbin
Posts: 11
Joined: Wed Jun 02, 2004 1:41 pm
Location: Sweden
Contact:

EditBox isn't enabled

Post by lobbin »

This is my code, the set visible and enabled are thest just to be testing.

Code: Select all

IGUIEditBox* nickname = guienv->addEditBox(L"", rect<int>(320,400,420,380), true, 0, 701 );
nickname->setText(L"testen");
nickname->setVisible(true);
nickname->setEnabled(true);
This isn't working on neither Linux nor Windows. It shows a gray box, but the box isn't sensitive to any clicks and the text entered isn't shown either.

I doubledchecked with the examples using EditBoxes, and they work as they should, I doubled-checked the code against the exampels aswell, without any luck.


Robin
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Post by joy »

Hi, I think thats because you set the rectangle wrong. The first two parameters (in your case:320,400) define the upper left edge of the rectangle the second to parameters (in your case:420,380) the lower right edge. So the lower right edge is about the upper left edge and the editbox is inverse. To solve the Problem you have to set the last two parameter for example to 420, 580.
Post Reply