Edit Box with Scrollbar

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
pip8786
Posts: 2
Joined: Fri Nov 07, 2008 2:23 am

Edit Box with Scrollbar

Post by pip8786 »

How would I add an edit box with a scrollbar? I see that Listboxes have scrollbars, but there is no such option for an editable box?

Thanks,
pip
jontan6
Posts: 278
Joined: Fri Jun 13, 2008 5:29 pm

Post by jontan6 »

maybe use textarea, e.g.

<textarea name="Comments" id="Comments" rows="8" cols="40">Your comments go here. </textarea>
jddevnet
Posts: 17
Joined: Mon Oct 06, 2008 8:27 pm

Post by jddevnet »

I didn't get a chance to test this out, but it may be what you need:

http://irrlicht.sourceforge.net/docu/cl ... t.html#a18
virtual IGUISpinBox* irr::gui::IGUIEnvironment::addSpinBox ( const wchar_t * text,
const core::rect< s32 > & rectangle,
IGUIElement * parent = 0,
s32 id = -1
) [pure virtual]

Adds a spin box.

An edit box with up and down buttons
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

not possible at the moment without editing CGUIEditbox.cpp, however if you add it to the request tracker I'll get round to adding this eventually
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

jddevnet wrote:I didn't get a chance to test this out, but it may be what you need:

http://irrlicht.sourceforge.net/docu/cl ... t.html#a18
virtual IGUISpinBox* irr::gui::IGUIEnvironment::addSpinBox ( const wchar_t * text,
const core::rect< s32 > & rectangle,
IGUIElement * parent = 0,
s32 id = -1
) [pure virtual]

Adds a spin box.

An edit box with up and down buttons
no, that's a spin box, means a box for numbers with increment and decrement buttons (though "up and down buttons" is a bit missleading)... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply