How to made statictext or editbox scrollable

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
humorstar
Posts: 25
Joined: Sat Oct 04, 2008 3:50 am

How to made statictext or editbox scrollable

Post by humorstar »

The statictext and editbox in Irrlicht GUI do not automatically add a scroll bar when the text is bigger than the give rectangle area.

Is it possible to add a scrollbar to it with little effort?
Thank you,
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

You could use the panel class that Klasker made. You can find it in the GUI editor directory (tools/GUIEditor/CGUIPanel.*) put any elements inside and it will automatically add scrollbars
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

any indication scroll bar will be added to edit text in the future releases?
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

I had no such plans for edittext so far (is that really typically used in an editbox?). For static-texts scrolling itself must be improved first, I have already written 2 patches for that (first one wasn't so good) and plan to apply the latter whenever I find time for it. Then it will at least be easier to code that.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

turns out just the event receiver needed to be updated to work with 1.7 for some reason it was compiling without the "const SEvent& event" part and running anyway heres a link

Updated with mouse scrolling
http://www.xup.in/dl,76797232/TextBox.7z/
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply