how can i make a Edit Box?
how can i make a Edit Box?
how can i use the addEditBox() every time i use it like the addListBox() it will not work. i can get the addListBox() to work on my program but if i swich it with addEditBox() to get a box that the user can type in it has errors. how should i go about setting up an addEditBox()
-
- Posts: 370
- Joined: Mon Aug 29, 2005 10:54 pm
- Location: http://web.utk.edu/~pfox1
-
- Posts: 370
- Joined: Mon Aug 29, 2005 10:54 pm
- Location: http://web.utk.edu/~pfox1
-
- Posts: 377
- Joined: Fri Oct 28, 2005 10:28 am
- Contact:
IGUIEditBox (rect< s32 > (210, 380, 330, 400));
and the errors are
Project\main.cpp #include expects "FILENAME" or <FILENAME>
Project\main.cpp In function `int main()':
Project\main.cpp cannot allocate an object of type `irr::gui::IGUIEditBox'
Project\main.cpp because the following virtual functions are abstract:
irrlicht-0.14.0\irrlicht-0.14.0\include\IGUIEditBox.h virtual void irr::gui::IGUIEditBox::setOverrideFont(irr::gui::IGUIFont*)
irrlicht-0.14.0\include\IGUIEditBox.h virtual void irr::gui::IGUIEditBox::setOverrideColor(irr::video::SColor)
irrlicht-0.14.0\include\IGUIEditBox.h virtual void irr::gui::IGUIEditBox::enableOverrideColor(bool)
irrlicht-0.14.0\include\IGUIEditBox.h virtual void irr::gui::IGUIEditBox::setMax(irr::s32)
irrlicht-0.14.0\include\IGUIEditBox.h virtual irr::s32 irr::gui::IGUIEditBox::getMax()
irrlicht-0.14.0\examples\Project\Makefile.win [Build Error] [main.o] Error 1
thats all the error's
and the errors are
Project\main.cpp #include expects "FILENAME" or <FILENAME>
Project\main.cpp In function `int main()':
Project\main.cpp cannot allocate an object of type `irr::gui::IGUIEditBox'
Project\main.cpp because the following virtual functions are abstract:
irrlicht-0.14.0\irrlicht-0.14.0\include\IGUIEditBox.h virtual void irr::gui::IGUIEditBox::setOverrideFont(irr::gui::IGUIFont*)
irrlicht-0.14.0\include\IGUIEditBox.h virtual void irr::gui::IGUIEditBox::setOverrideColor(irr::video::SColor)
irrlicht-0.14.0\include\IGUIEditBox.h virtual void irr::gui::IGUIEditBox::enableOverrideColor(bool)
irrlicht-0.14.0\include\IGUIEditBox.h virtual void irr::gui::IGUIEditBox::setMax(irr::s32)
irrlicht-0.14.0\include\IGUIEditBox.h virtual irr::s32 irr::gui::IGUIEditBox::getMax()
irrlicht-0.14.0\examples\Project\Makefile.win [Build Error] [main.o] Error 1
thats all the error's
-
- Posts: 377
- Joined: Fri Oct 28, 2005 10:28 am
- Contact:
Ok you just aren't calling addEditBox() at all. What you do is trying to create it per constructor call, which is not possible for an interface.
Just use addEditBox instead: http://irrlicht.sourceforge.net/docu/cl ... nt.html#a4
You also might want to read the gui tutorial: http://irrlicht.sourceforge.net/tut005.html
Also correct the #include statement the compiler complains about.
Just use addEditBox instead: http://irrlicht.sourceforge.net/docu/cl ... nt.html#a4
You also might want to read the gui tutorial: http://irrlicht.sourceforge.net/tut005.html
Also correct the #include statement the compiler complains about.
-
- Posts: 377
- Joined: Fri Oct 28, 2005 10:28 am
- Contact:
well i looked at the api and i just dont get it. now if the api showed and example and then explaned how to change things by using the example code then that could help. but the api code has nothing with real varibles that would make sence. like where do i put the x and y stuff and is there anything else that i need in it . it dusnt show that in the api. it shows stuff lile rectangle and other things that if you tryed using bring back errors i tend to work good off of example code but how they explan it in the api i just dont get. i need a cheat sheet just to understand the api.